FuncList | DESC |
live player error notification, which is called back when the player encounters an error | |
live player warning notification | |
live player resolution change notification | |
live player has successfully connected to the server notification | |
Video playback event | |
Audio playback event | |
Video loading event | |
Audio loading event | |
Player playback volume callback | |
Live player statistics callback | |
Screenshot callback | |
Custom video rendering callback | |
Audio Data callback | |
Callback of receiving an SEI message. The sender calls sendSeiMessage in V2TXLivePusher to send an SEI | |
Resolution stream switch callback | |
Picture-in-Picture state change callback | |
The SDK returns this callback when you call startLocalRecording to start local recording, which means recording task in progress. | |
- (void)onError: | |
code: | |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Error message. |
player | Player object that calls back this notification. |
- (void)onWarning: | |
code: | |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Warning message. |
player | Player object that calls back this notification. |
- (void)onVideoResolutionChanged: | |
width: | (NSInteger)width |
height: | (NSInteger)height |
Param | DESC |
height | Video height. |
player | Player object that calls back this notification. |
width | Video width. |
- (void)onConnected: | |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
player | Player object that calls back this notification. |
- (void)onVideoPlaying: | |
firstPlay: | (BOOL)firstPlay |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
firstPlay | Play for the first time. |
player | Player object that calls back this notification. |
- (void)onAudioPlaying: | |
firstPlay: | (BOOL)firstPlay |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
firstPlay | Play for the first time. |
player | Player object that calls back this notification. |
- (void)onVideoLoading: | |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
player | Player object that calls back this notification. |
- (void)onAudioLoading: | |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
player | Player object that calls back this notification. |
- (void)onPlayoutVolumeUpdate: | |
volume: | (NSInteger)volume |
Param | DESC |
player | Player object that calls back this notification. |
volume | Current playback volume. |
- (void)onStatisticsUpdate: | |
statistics: |
Param | DESC |
player | Player object that calls back this notification. |
statistics |
- (void)onSnapshotComplete: | |
image: | (nullable TXImage *)image |
Param | DESC |
image | Captured video image. |
player | Player object that calls back this notification. |
- (void)onRenderVideoFrame: | |
frame: |
Param | DESC |
player | Player object that calls back this notification. |
videoFrame |
- (void)onPlayoutAudioFrame: | |
frame: | (V2TXLiveAudioFrame *)audioFrame |
Param | DESC |
aduioFrame | |
player | Player object that calls back this notification. |
- (void)onReceiveSeiMessage: | |
payloadType: | (int)payloadType |
data: | (NSData *)data |
Param | DESC |
data | sei message data. |
payloadType | The payload type of the received SEI message. |
player | Player object that calls back this notification. |
enableReceiveSeiMessage
in V2TXLivePlayer to enable the receiving of SEI.- (void)onStreamSwitched: | |
url: | (NSString *)url |
code: | (NSInteger)code |
Param | DESC |
code | Status code, 0:success, -1:timeout, -2:failed, server error, -3:failed, client error. |
player | Player object that calls back this notification. |
url | Switched playback address. |
- (void)onPictureInPictureStateUpdate: | |
state: | |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
player | Player object that calls back this notification. |
state | Picture-in-Picture state。 |
- (void)onLocalRecordBegin: | |
errCode: | (NSInteger)errCode |
storagePath: | (NSString *)storagePath |
Param | DESC |
code | status. 0: successful. -1: failed. -2: unsupported format. -6: recording has been started. Stop recording first. -7: recording file already exists and needs to be deleted. -8: recording directory does not have the write permission. Please check the directory permission. |
player | Player object that calls back this notification. |
storagePath | recording filePath. |
- (void)onLocalRecording: | |
durationMs: | (NSInteger)durationMs |
storagePath: | (NSString *)storagePath |
Param | DESC |
durationMs | recording duration. |
player | Player object that calls back this notification. |
storagePath | recording filePath. |
- (void)onLocalRecordComplete: | |
errCode: | (NSInteger)errCode |
storagePath: | (NSString *)storagePath |
Param | DESC |
code | status 0: successful. -1: failed. -2: Switching resolution or horizontal and vertical screen causes the recording to stop. -3: recording duration is too short or no video or audio data is received. Check the recording duration or whether audio or video capture is enabled. |
player | Player object that calls back this notification. |
storagePath | recording filePath. |
Was this page helpful?