FuncList | DESC |
live player error notification, which is called back when the player encounters an error | |
live player warning notification | |
live player resolution change notification | |
live player has successfully connected to the server notification | |
Video playback event | |
Audio playback event | |
Video loading event | |
Audio loading event | |
Player playback volume callback | |
Live player statistics callback | |
Screenshot callback | |
Custom video rendering callback | |
Audio Data callback | |
Callback of receiving an SEI message. The sender calls sendSeiMessage in V2TXLivePusher to send an SEI | |
Resolution stream switch callback | |
The SDK returns this callback when you call startLocalRecording to start local recording, which means recording task in progress. | |
void onError | |
| int code |
| String msg |
| Bundle extraInfo) |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Error message. |
player | Player object that calls back this notification. |
void onWarning | |
| int code |
| String msg |
| Bundle extraInfo) |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Warning message. |
player | Player object that calls back this notification. |
void onVideoResolutionChanged | |
| int width |
| int height) |
Param | DESC |
height | Video height. |
player | Player object that calls back this notification. |
width | Video width. |
void onConnected | |
| Bundle extraInfo) |
Param | DESC |
extraInfo | Extended information. |
player | Player object that calls back this notification. |
void onVideoPlaying | |
| boolean firstPlay |
| Bundle extraInfo) |
Param | DESC |
extraInfo | Extended information. |
firstPlay | Play for the first time. |
player | Player object that calls back this notification. |
void onAudioPlaying | |
| boolean firstPlay |
| Bundle extraInfo) |
Param | DESC |
extraInfo | Extended information. |
firstPlay | Play for the first time. |
player | Player object that calls back this notification. |
void onVideoLoading | |
| Bundle extraInfo) |
Param | DESC |
extraInfo | Extended information. |
player | Player object that calls back this notification. |
void onAudioLoading | |
| Bundle extraInfo) |
Param | DESC |
extraInfo | Extended information. |
player | Player object that calls back this notification. |
void onPlayoutVolumeUpdate | |
| int volume) |
Param | DESC |
player | Player object that calls back this notification. |
volume | Current playback volume. |
void onStatisticsUpdate | |
|
Param | DESC |
player | Player object that calls back this notification. |
statistics |
void onSnapshotComplete | |
| Bitmap image) |
Param | DESC |
image | Captured video image. |
player | Player object that calls back this notification. |
void onRenderVideoFrame | |
|
Param | DESC |
player | Player object that calls back this notification. |
videoFrame |
void onPlayoutAudioFrame | |
| V2TXLiveAudioFrame audioFrame) |
Param | DESC |
aduioFrame | |
player | Player object that calls back this notification. |
void onReceiveSeiMessage | |
| int payloadType |
| byte[] data) |
Param | DESC |
data | sei message data. |
payloadType | The payload type of the received SEI message. |
player | Player object that calls back this notification. |
enableReceiveSeiMessage
in V2TXLivePlayer to enable the receiving of SEI.void onStreamSwitched | |
| String url |
| int code) |
Param | DESC |
code | Status code, 0:success, -1:timeout, -2:failed, server error, -3:failed, client error. |
player | Player object that calls back this notification. |
url | Switched playback address. |
void onLocalRecordBegin | |
| int code |
| String storagePath) |
Param | DESC |
code | status. 0: successful. -1: failed. -2: unsupported format. -6: recording has been started. Stop recording first. -7: recording file already exists and needs to be deleted. -8: recording directory does not have the write permission. Please check the directory permission. |
player | Player object that calls back this notification. |
storagePath | recording filePath. |
void onLocalRecording | |
| long durationMs |
| String storagePath) |
Param | DESC |
durationMs | recording duration. |
player | Player object that calls back this notification. |
storagePath | recording filePath. |
void onLocalRecordComplete | |
| int code |
| String storagePath) |
Param | DESC |
code | status 0: successful. -1: failed. -2: Switching resolution or horizontal and vertical screen causes the recording to stop. -3: recording duration is too short or no video or audio data is received. Check the recording duration or whether audio or video capture is enabled. |
player | Player object that calls back this notification. |
storagePath | recording filePath. |
Was this page helpful?