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.
◆ V2TXLivePlayerObserver-p
| protocol V2TXLivePlayerObserver-p |
◆ onAudioLoading:extraInfo:()
| - (void) onAudioLoading: |
|
(id< V2TXLivePlayer >) |
player |
| extraInfo: |
|
(NSDictionary *) |
extraInfo |
|
|
| |
|
optional |
Audio loading event
- Parameters
-
| player | Player object that calls back this notification |
| extraInfo | Extended information |
◆ onAudioPlaying:firstPlay:extraInfo:()
| - (void) onAudioPlaying: |
|
(id< V2TXLivePlayer >) |
player |
| firstPlay: |
|
(BOOL) |
firstPlay |
| extraInfo: |
|
(NSDictionary *) |
extraInfo |
|
|
| |
|
optional |
Audio playback event
- Parameters
-
| player | Player object that calls back this notification |
| firstPlay | Play for the first time |
| extraInfo | Extended information |
◆ onConnected:extraInfo:()
| - (void) onConnected: |
|
(id< V2TXLivePlayer >) |
player |
| extraInfo: |
|
(NSDictionary *) |
extraInfo |
|
|
| |
|
optional |
live player has successfully connected to the server notification
- Parameters
-
| player | Player object that calls back this notification |
| extraInfo | Extended information |
◆ 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
-
| player | Player object that calls back this notification |
| code | Error code V2TXLiveCode |
| msg | Error message |
| extraInfo | Extended 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
-
| player | Player object that calls back this notification |
| volume | Current playback volume |
◆ onReceiveSeiMessage:payloadType:data:()
| - (void) onReceiveSeiMessage: |
|
(id< V2TXLivePlayer >) |
player |
| payloadType: |
|
(int) |
payloadType |
| data: |
|
(NSData *) |
data |
|
|
| |
|
optional |
Callback of receiving an SEI message. The sender calls sendSeiMessage in V2TXLivePusher to send an SEI message.
- Attention
- You will receive this callback after calling
enableReceiveSeiMessage in V2TXLivePlayer to enable the receiving of SEI
- Parameters
-
| player | Player object that calls back this notification |
| payloadType | The payload type of the received SEI message |
| data | sei message data |
◆ onRenderVideoFrame:frame:()
Custom video rendering callback
- Attention
- Need you call V2TXLivePlayer::enableObserveVideoFrame:pixelFormat:bufferType: "enableObserveVideoFrame" to turn on the callback switch.
- Parameters
-
| player | Player object that calls back this notification |
| videoFrame | Video frame data V2TXLiveVideoFrame |
◆ onSnapshotComplete:image:()
Screenshot callback
- Attention
- This callback notification is received after snapshot is called to snapshot.
- Parameters
-
| player | Player object that calls back this notification |
| image | Captured video image |
◆ onStatisticsUpdate:statistics:()
Live player statistics callback.
- Parameters
-
◆ onVideoLoading:extraInfo:()
| - (void) onVideoLoading: |
|
(id< V2TXLivePlayer >) |
player |
| extraInfo: |
|
(NSDictionary *) |
extraInfo |
|
|
| |
|
optional |
Video loading event
- Parameters
-
| player | Player object that calls back this notification |
| extraInfo | Extended information |
◆ onVideoPlaying:firstPlay:extraInfo:()
| - (void) onVideoPlaying: |
|
(id< V2TXLivePlayer >) |
player |
| firstPlay: |
|
(BOOL) |
firstPlay |
| extraInfo: |
|
(NSDictionary *) |
extraInfo |
|
|
| |
|
optional |
Video playback event
- Parameters
-
| player | Player object that calls back this notification |
| firstPlay | Play for the first time |
| extraInfo | Extended information |
◆ onVideoResolutionChanged:width:height:()
| - (void) onVideoResolutionChanged: |
|
(id< V2TXLivePlayer >) |
player |
| width: |
|
(NSInteger) |
width |
| height: |
|
(NSInteger) |
height |
|
|
| |
|
optional |
live player resolution change notification
- Parameters
-
| player | Player object that calls back this notification |
| width | Video width |
| height | Video height |
◆ onWarning:code:message:extraInfo:()
| - (void) onWarning: |
|
(id< V2TXLivePlayer >) |
player |
| code: |
|
(V2TXLiveCode) |
code |
| message: |
|
(NSString *) |
msg |
| extraInfo: |
|
(NSDictionary *) |
extraInfo |
|
|
| |
|
optional |
live player warning notification
- Parameters
-
| player | Player object that calls back this notification |
| code | Warning code V2TXLiveCode |
| msg | Warning message |
| extraInfo | Extended information |