Live play info listener. More...
Live play info listener.
Definition at line 25 of file AlivcLivePlayInfoListener.java.
boolean com.alivc.live.player.AlivcLivePlayInfoListener.onAudioFrame | ( | AlivcLivePushAudioFrame | audioFrame | ) |
Remote audio frame data callback
audioFrame | Audio frame data |
com.alivc.live.pusher.AlivcLivePusher#enableAudioFrameObserver(boolean, AlivcLiveAudioSource, AlivcLiveAudioFrameObserverConfig)
Definition at line 222 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onAudioMuted | ( | boolean | mute | ) |
audio mute/unmute callback for remote user
mute | mute audio or not |
com.alivc.live.pusher.AlivcLivePusher#setMute(boolean)
Definition at line 147 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onAudioSubscribeStateChanged | ( | AlivcLiveSubscribeState | oldState, |
AlivcLiveSubscribeState | newState | ||
) |
Audio stream subscription state callback
oldState | Old audio stream subscription state |
newState | New audio stream subscription state |
Definition at line 187 of file AlivcLivePlayInfoListener.java.
|
abstract |
play error callback
code | error code |
msg | error msg |
void com.alivc.live.player.AlivcLivePlayInfoListener.onFirstAudioFrameDecoded | ( | ) |
first audio frame decoded
Definition at line 64 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onFirstAudioFrameReceived | ( | ) |
first audio frame received
Definition at line 58 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onFirstVideoFrameDrawn | ( | ) |
first video frame drawn
Definition at line 76 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onFirstVideoFrameReceived | ( | ) |
first video frame received
Definition at line 70 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onNetworkQualityChanged | ( | AlivcLiveNetworkQuality | upQuality, |
AlivcLiveNetworkQuality | downQuality | ||
) |
network quality changed callback
upQuality | up network quality |
downQuality | down network quality |
Definition at line 137 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onPlayerStatistics | ( | AlivcLivePlayerStatsInfo | statsInfo | ) |
play statistics callback
statsInfo | play statistics |
Definition at line 114 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onPlayoutVolumeUpdate | ( | int | volume, |
boolean | isSpeaking | ||
) |
the callback of playout volume
volume | the total volume after mixing, with a value range of [0, 255]. |
isSpeaking | the status of speaking |
com.alivc.live.pusher.AlivcLivePusher#enableAudioVolumeIndication(int, int, int)
Definition at line 97 of file AlivcLivePlayInfoListener.java.
|
abstract |
play started callback
com.alivc.live.player.AlivcLivePlayer#startPlay(String)
|
abstract |
play stopped
com.alivc.live.player.AlivcLivePlayer#stopPlay()
void com.alivc.live.player.AlivcLivePlayInfoListener.onReceiveDataChannelMessage | ( | byte[] | data | ) |
Data Channel message callback
data | message data |
com.alivc.live.pusher.AlivcLivePusher#sendDataChannelMessage(String)
Definition at line 177 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onReceiveSEIMessage | ( | int | payload, |
byte[] | data | ||
) |
received media extension information(SEI) callback
payload | payload type |
data | media extension information(SEI) |
com.alivc.live.pusher.AlivcLivePusher#sendMessage(String, int, int, boolean)
com.alivc.live.pusher.AlivcLivePusher#sendMessage(String, int, int, boolean, int)
Definition at line 87 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onRemoteUserLeave | ( | AlivcLiveUserOfflineReason | reason | ) |
Remote user offline callback
reason | The reason why the user is offline |
Definition at line 126 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onScreenShareSubscribeStateChanged | ( | AlivcLiveSubscribeState | oldState, |
AlivcLiveSubscribeState | newState | ||
) |
Screen share stream subscription state callback
oldState | Old screen share stream subscription state |
newState | New screen share stream subscription state |
Definition at line 207 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onVideoEnabled | ( | boolean | enable | ) |
Turn on/off video capture notifications for remote user
enable | turn off video capture or not |
com.alivc.live.pusher.AlivcLivePusher#enableLocalCamera(boolean)
Definition at line 167 of file AlivcLivePlayInfoListener.java.
boolean com.alivc.live.player.AlivcLivePlayInfoListener.onVideoFrame | ( | AlivcLivePushVideoFrame | videoFrame | ) |
Remote video frame data callback
videoFrame | video data sample |
com.alivc.live.pusher.AlivcLivePushConfig#setEnableRemoteVideoFrameCallback(boolean)
interface to take effect Definition at line 234 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onVideoMuted | ( | boolean | mute | ) |
video mute/unmute callback for remote user
mute | mute video or not |
com.alivc.live.pusher.AlivcLivePusher#muteLocalCamera(boolean)
Definition at line 157 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onVideoResolutionChanged | ( | int | width, |
int | height | ||
) |
video resolution changed callback
width | video width |
height | video height |
Definition at line 106 of file AlivcLivePlayInfoListener.java.
void com.alivc.live.player.AlivcLivePlayInfoListener.onVideoSubscribeStateChanged | ( | AlivcLiveSubscribeState | oldState, |
AlivcLiveSubscribeState | newState | ||
) |
Video stream subscription state callback
oldState | Old video stream subscription state |
newState | New video stream subscription state |
Definition at line 197 of file AlivcLivePlayInfoListener.java.