LiteAVSDK
Tencent Cloud LVB SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
V2TXLivePlayerObserver

Detailed Description

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.


Data Structure Documentation

◆ 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)
 

Member Function Documentation

◆ 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
playerPlayer object that calls back this notification
codeError code V2TXLiveCode
msgError message
extraInfoExtended information

◆ onWarning()

void onWarning ( V2TXLivePlayer  player,
int  code,
String  msg,
Bundle  extraInfo 
)
inline

live player warning notification

Parameters
playerPlayer object that calls back this notification
codeWarning code V2TXLiveCode
msgError message
extraInfoExtended information

◆ onVideoPlayStatusUpdate()

void onVideoPlayStatusUpdate ( V2TXLivePlayer  player,
V2TXLivePlayStatus  status,
V2TXLiveStatusChangeReason  reason,
Bundle  extraInfo 
)
inline

live player video status changed notification

Parameters
playerPlayer object that calls back this notification
statusStatus code V2TXLivePlayStatus
reasonThe reason for the changed status V2TXLiveStatusChangeReason
extraInfoExtended information

◆ onAudioPlayStatusUpdate()

void onAudioPlayStatusUpdate ( V2TXLivePlayer  player,
V2TXLivePlayStatus  status,
V2TXLiveStatusChangeReason  reason,
Bundle  extraInfo 
)
inline

live player audio status changed notification

Parameters
playerPlayer object that calls back this notification
statusStatus code V2TXLivePlayStatus
reasonThe reason for the changed status V2TXLiveStatusChangeReason
extraInfoExtended information

◆ onPlayoutVolumeUpdate()

void onPlayoutVolumeUpdate ( V2TXLivePlayer  player,
int  volume 
)
inline

Player playback volume callback.

Attention
This callback notification is received after enableVolumeEvaluation is called to enable playback volume display.
Parameters
playerPlayer object that calls back this notification
volumeCurrent playback volume

◆ onStatisticsUpdate()

void onStatisticsUpdate ( V2TXLivePlayer  player,
V2TXLivePlayerStatistics  statistics 
)
inline

Live player statistics callback.

Parameters
playerPlayer object that calls back this notification
statisticsPlayer statistics V2TXLivePlayerStatistics

◆ onSnapshotComplete()

void onSnapshotComplete ( V2TXLivePlayer  player,
Bitmap  image 
)
inline

Screenshot callback

Parameters
playerPlayer object that calls back this notification
imageCaptured video image

◆ onRenderVideoFrame()

void onRenderVideoFrame ( V2TXLivePlayer  player,
V2TXLiveVideoFrame  videoFrame 
)
inline

Custom video rendering callback

Attention
This callback notification is received after enableCustomRendering is called to enable custom video rendering.
Parameters
playerPlayer object that calls back this notification
videoFrameVideo frame data V2TXLiveVideoFrame