Live push info listener.
More...
|
abstract void | onPreviewStarted (AlivcLivePusher pusher) |
|
abstract void | onPreviewStopped (AlivcLivePusher pusher) |
|
abstract void | onPushStarted (AlivcLivePusher pusher) |
|
abstract void | onPushPaused (AlivcLivePusher pusher) |
|
abstract void | onPushResumed (AlivcLivePusher pusher) |
|
abstract void | onPushStopped (AlivcLivePusher pusher) |
|
abstract void | onPushRestarted (AlivcLivePusher pusher) |
|
abstract void | onFirstFramePreviewed (AlivcLivePusher pusher) |
|
abstract void | onFirstFramePushed (AlivcLivePusher pusher) |
|
abstract void | onDropFrame (AlivcLivePusher pusher, int beforeCount, int afterCount) |
|
abstract void | onAdjustBitrate (AlivcLivePusher pusher, int currentBitrate, int targetBitrate) |
|
abstract void | onAdjustFps (AlivcLivePusher pusher, int currentFps, int targetFps) |
|
abstract void | onPushStatistics (AlivcLivePusher pusher, AlivcLivePushStatsInfo statistics) |
|
void | onSetLiveMixTranscodingConfig (AlivcLivePusher pusher, boolean isSuccess, String msg) |
|
void | onKickedOutByServer (AlivcLivePusher pusher, AlivcLivePushKickedOutType kickedOutType) |
|
void | onMicrophoneVolumeUpdate (AlivcLivePusher pusher, int volume) |
|
void | onLocalRecordEvent (AlivcLiveRecordMediaEvent mediaEvent, String storagePath) |
|
void | onAudioPublishStateChanged (AlivcLivePublishState oldState, AlivcLivePublishState newState) |
|
void | onVideoPublishStateChanged (AlivcLivePublishState oldState, AlivcLivePublishState newState) |
|
void | onScreenSharePublishStateChanged (AlivcLivePublishState oldState, AlivcLivePublishState newState) |
|
void | onLocalDualAudioStreamPushState (AlivcLivePusher pusher, boolean isPushing) |
|
void | onRemoteUserEnterRoom (AlivcLivePusher pusher, String userId, boolean isOnline) |
|
void | onRemoteUserAudioStream (AlivcLivePusher pusher, String userId, boolean isPushing) |
|
void | onRemoteUserVideoStream (AlivcLivePusher pusher, String userId, AlivcLivePlayVideoStreamType videoStreamType, boolean isPushing) |
|
◆ onAdjustBitrate()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onAdjustBitrate |
( |
AlivcLivePusher |
pusher, |
|
|
int |
currentBitrate, |
|
|
int |
targetBitrate |
|
) |
| |
|
abstract |
bitrate adjusted callback
- Parameters
-
pusher | pusher instance |
currentBitrate | current bitrate |
targetBitrate | target bitrate |
◆ onAdjustFps()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onAdjustFps |
( |
AlivcLivePusher |
pusher, |
|
|
int |
currentFps, |
|
|
int |
targetFps |
|
) |
| |
|
abstract |
FPS adjusted callback
- Parameters
-
pusher | pusher instance |
currentFps | current FPS |
targetFps | target FPS |
◆ onAudioPublishStateChanged()
Callback for changes in audio streaming publish state
- Parameters
-
oldState | old publish state |
newState | new publish state |
- Attention
- This API is only supported in the interactive mode currently
Definition at line 181 of file AlivcLivePushInfoListener.java.
◆ onDropFrame()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onDropFrame |
( |
AlivcLivePusher |
pusher, |
|
|
int |
beforeCount, |
|
|
int |
afterCount |
|
) |
| |
|
abstract |
drop frame callback
- Parameters
-
pusher | pusher instance |
beforeCount | video frame count before |
afterCount | video frame count after |
◆ onFirstFramePreviewed()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onFirstFramePreviewed |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
first frame previewed callback (Rendering the first frame of audio and video stream)
- Parameters
-
◆ onFirstFramePushed()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onFirstFramePushed |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
first frame pushed callback (Send the first frame of audio and video stream)
- Parameters
-
◆ onKickedOutByServer()
◆ onLocalDualAudioStreamPushState()
void com.alivc.live.pusher.AlivcLivePushInfoListener.onLocalDualAudioStreamPushState |
( |
AlivcLivePusher |
pusher, |
|
|
boolean |
isPushing |
|
) |
| |
◆ onLocalRecordEvent()
void com.alivc.live.pusher.AlivcLivePushInfoListener.onLocalRecordEvent |
( |
AlivcLiveRecordMediaEvent |
mediaEvent, |
|
|
String |
storagePath |
|
) |
| |
◆ onMicrophoneVolumeUpdate()
void com.alivc.live.pusher.AlivcLivePushInfoListener.onMicrophoneVolumeUpdate |
( |
AlivcLivePusher |
pusher, |
|
|
int |
volume |
|
) |
| |
◆ onPreviewStarted()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onPreviewStarted |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
preview started callback
- Parameters
-
◆ onPreviewStopped()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onPreviewStopped |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
preview stopped callback
- Parameters
-
◆ onPushPaused()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onPushPaused |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
push paused callback
- Parameters
-
◆ onPushRestarted()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onPushRestarted |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onPushResumed()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onPushResumed |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
push resumed callback
- Parameters
-
◆ onPushStarted()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onPushStarted |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onPushStatistics()
◆ onPushStopped()
abstract void com.alivc.live.pusher.AlivcLivePushInfoListener.onPushStopped |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
push stopped callback
- Parameters
-
◆ onRemoteUserAudioStream()
void com.alivc.live.pusher.AlivcLivePushInfoListener.onRemoteUserAudioStream |
( |
AlivcLivePusher |
pusher, |
|
|
String |
userId, |
|
|
boolean |
isPushing |
|
) |
| |
There are users pushing audio stream callbacks from members in the room
- Parameters
-
pusher | pusher instance |
userId | User ID |
isPushing | pushing state, true->start pushing, false->stop pushing |
- Attention
- This API is only supported in the interactive mode currently
Definition at line 247 of file AlivcLivePushInfoListener.java.
◆ onRemoteUserEnterRoom()
void com.alivc.live.pusher.AlivcLivePushInfoListener.onRemoteUserEnterRoom |
( |
AlivcLivePusher |
pusher, |
|
|
String |
userId, |
|
|
boolean |
isOnline |
|
) |
| |
the callback of user being entered the room
- Parameters
-
pusher | pusher instance |
userId | User ID |
isOnline | online state,true->join room,false->leave room |
- Attention
- This API is only supported in the interactive mode currently
- Note
- When the anchor is connecting, after the connected microphone audience starts pushing the stream, the anchor can receive this callback.
-
After the anchor receives the callback, the anchor can request the pull streaming address by the userId from its business server and use the
com.alivc.live.player.AlivcLivePlayer#startPlay(String)
interface for pulling streaming
Definition at line 235 of file AlivcLivePushInfoListener.java.
◆ onRemoteUserVideoStream()
A user opens a shared stream callback in the room, which can be a screen sharing stream or a unity stream
- Parameters
-
pusher | pusher instance |
userId | User ID |
videoStreamType | video stream type |
isPushing | pushing state, true->start pushing, false->stop pushing |
- Attention
- This API is only supported in the interactive mode currently
- Note
- After the anchor gets the shared stream callback, he can create an AliLivePlayer object, specify the videoStreamType as AlivcLivePlayVideoStreamTypeScreen,
-
use the userId's link address to pull the stream, and use the interface
com.alivc.live.player.AlivcLivePlayer#startPlay(String)
to pull the stream.
Definition at line 262 of file AlivcLivePushInfoListener.java.
◆ onScreenSharePublishStateChanged()
◆ onSetLiveMixTranscodingConfig()
void com.alivc.live.pusher.AlivcLivePushInfoListener.onSetLiveMixTranscodingConfig |
( |
AlivcLivePusher |
pusher, |
|
|
boolean |
isSuccess, |
|
|
String |
msg |
|
) |
| |
◆ onVideoPublishStateChanged()
Callback for changes in video streaming publish state
- Parameters
-
oldState | old publish state |
newState | new publish state |
- Attention
- This API is only supported in the interactive mode currently
Definition at line 193 of file AlivcLivePushInfoListener.java.