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
| class V2TXLivePlayerObserver |
◆ 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 |
◆ 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 | Error message |
| extraInfo | Extended information |
◆ onVideoPlayStatusUpdate:status:reason:extraInfo()
live player video status changed notification
- Parameters
-
◆ onAudioPlayStatusUpdate:status:reason:extraInfo()
live player audio status changed notification
- Parameters
-
◆ 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 |
◆ onStatisticsUpdate:statistics()
Live player statistics callback.
- Parameters
-
◆ onSnapshotComplete:image()
| - (void) onSnapshotComplete: |
|
(id< V2TXLivePlayer >) |
player |
| image: |
|
(TXImage *) |
image |
|
|
| |
|
optional |
Screenshot callback
- Parameters
-
| player | Player object that calls back this notification |
| image | Captured video image |
◆ onRenderVideoFrame:frame()
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 |