Tencent Cloud live player callback notification
Some V2TXLivePlayer callback notifications can be received, including the player status, playback volume callback, audio/video first-frame callback, statistics, warning, and error messages.
◆ com::tencent::live2::V2TXLivePlayerObserver
| class com::tencent::live2::V2TXLivePlayerObserver |
Public Member Functions |
| void | onError (V2TXLivePlayer player, int code, String msg, Bundle extraInfo) |
| |
| void | onWarning (V2TXLivePlayer player, int code, String msg, Bundle extraInfo) |
| |
| void | onVideoPlayStatusUpdate (V2TXLivePlayer player, V2TXLivePlayStatus status, V2TXLiveStatusChangeReason reason, Bundle extraInfo) |
| |
| void | onAudioPlayStatusUpdate (V2TXLivePlayer player, V2TXLivePlayStatus status, V2TXLiveStatusChangeReason reason, Bundle extraInfo) |
| |
| void | onPlayoutVolumeUpdate (V2TXLivePlayer player, int volume) |
| |
| void | onStatisticsUpdate (V2TXLivePlayer player, V2TXLivePlayerStatistics statistics) |
| |
| void | onSnapshotComplete (V2TXLivePlayer player, Bitmap image) |
| |
| void | onRenderVideoFrame (V2TXLivePlayer player, V2TXLiveVideoFrame videoFrame) |
| |
◆ onError()
| void onError |
( |
V2TXLivePlayer |
player, |
|
|
int |
code, |
|
|
String |
msg, |
|
|
Bundle |
extraInfo |
|
) |
| |
|
inline |
live player error notification, which is called back when the player encounters an error
- Parameters
-
| player | Player object that calls back this notification |
| code | Error code V2TXLiveCode |
| msg | Error message |
| extraInfo | Extended information |
◆ onWarning()
| void onWarning |
( |
V2TXLivePlayer |
player, |
|
|
int |
code, |
|
|
String |
msg, |
|
|
Bundle |
extraInfo |
|
) |
| |
|
inline |
live player warning notification
- Parameters
-
| player | Player object that calls back this notification |
| code | Warning code V2TXLiveCode |
| msg | Error message |
| extraInfo | Extended information |
◆ onVideoPlayStatusUpdate()
live player video status changed notification
- Parameters
-
◆ onAudioPlayStatusUpdate()
live player audio status changed notification
- Parameters
-
◆ onPlayoutVolumeUpdate()
Player playback volume callback.
- Attention
- This callback notification is received after enableVolumeEvaluation is called to enable playback volume display.
- Parameters
-
| player | Player object that calls back this notification |
| volume | Current playback volume |
◆ onStatisticsUpdate()
Live player statistics callback.
- Parameters
-
◆ onSnapshotComplete()
Screenshot callback
- Parameters
-
| player | Player object that calls back this notification |
| image | Captured video image |
◆ onRenderVideoFrame()
Custom video rendering callback
- Attention
- This callback notification is received after enableCustomRendering is called to enable custom video rendering.
- Parameters
-
| player | Player object that calls back this notification |
| videoFrame | Video frame data V2TXLiveVideoFrame |