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

◆ V2TXLivePlayerObserver

class V2TXLivePlayerObserver

Instance Methods

(void) - onError:code:message:extraInfo
 
(void) - onWarning:code:message:extraInfo
 
(void) - onVideoPlayStatusUpdate:status:reason:extraInfo
 
(void) - onAudioPlayStatusUpdate:status:reason:extraInfo
 
(void) - onPlayoutVolumeUpdate:volume
 
(void) - onStatisticsUpdate:statistics
 
(void) - onSnapshotComplete:image
 
(void) - onRenderVideoFrame:frame
 

Method Documentation

◆ onError:code:message:extraInfo()

- (void) onError: (id< V2TXLivePlayer >)  player
code: (V2TXLiveCode code
message: (NSString *)  msg
extraInfo: (NSDictionary *)  extraInfo 
optional

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:code:message:extraInfo()

- (void) onWarning: (id< V2TXLivePlayer >)  player
code: (V2TXLiveCode code
message: (NSString *)  msg
extraInfo: (NSDictionary *)  extraInfo 
optional

live player warning notification

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

◆ onVideoPlayStatusUpdate:status:reason:extraInfo()

- (void) onVideoPlayStatusUpdate: (id< V2TXLivePlayer >)  player
status: (V2TXLivePlayStatus status
reason: (V2TXLiveStatusChangeReason reason
extraInfo: (NSDictionary *)  extraInfo 
optional

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:status:reason:extraInfo()

- (void) onAudioPlayStatusUpdate: (id< V2TXLivePlayer >)  player
status: (V2TXLivePlayStatus status
reason: (V2TXLiveStatusChangeReason reason
extraInfo: (NSDictionary *)  extraInfo 
optional

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:volume()

- (void) onPlayoutVolumeUpdate: (id< V2TXLivePlayer >)  player
volume: (NSInteger)  volume 
optional

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:statistics()

- (void) onStatisticsUpdate: (id< V2TXLivePlayer >)  player
statistics: (V2TXLivePlayerStatistics *)  statistics 
optional

Live player statistics callback.

Parameters
playerPlayer object that calls back this notification
statisticsPlayer statistics V2TXLivePlayerStatistics

◆ onSnapshotComplete:image()

- (void) onSnapshotComplete: (id< V2TXLivePlayer >)  player
image: (TXImage *)  image 
optional

Screenshot callback

Parameters
playerPlayer object that calls back this notification
imageCaptured video image

◆ onRenderVideoFrame:frame()

- (void) onRenderVideoFrame: (id< V2TXLivePlayer >)  player
frame: (V2TXLiveVideoFrame *)  videoFrame 
optional

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