FuncList | DESC |
Live pusher error notification, which is called back when the pusher encounters an error | |
Live pusher warning notification | |
Callback notification indicating that collection of the first audio frame is complete | |
Callback notification indicating that collection of the first video frame is complete | |
Microphone-collected volume callback | |
Callback notification of the pusher connection status | |
Live pusher statistics callback | |
Screenshot callback | |
Callback of created the OpenGL context in the SDK | |
Audio data captured by the local mic, pre-processed by the audio module, effect-processed and BGM-mixed | |
Custom video processing callback | |
Callback of destroying the OpenGL context in the SDK | |
Callback of setting On-Cloud MixTranscoding parameters, which corresponds to the setMixTranscodingConfig API | |
The SDK returns this callback when you call startScreenCapture and other APIs to start screen sharing. | |
The SDK returns this callback when you call startLocalRecording to start local recording, which means recording task in progress. | |
After calling enableVoiceActivityDetection to turn on voice activity detection, you will receive this callback notification when the anchor starts or stops speaking. |
onError: | |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Error message. |
onWarning: | |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Warning message. |
onMicrophoneVolumeUpdate: | (NSInteger)volume |
Param | DESC |
volume | Current volume value for collection. |
onPushStatusUpdate: | |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
msg | Connection status message. |
status |
onStatisticsUpdate: |
Param | DESC |
statistics |
onSnapshotComplete: | (nullable TXImage *)image |
Param | DESC |
image | Captured video image. |
onProcessAudioFrame: | (V2TXLiveAudioFrame *)frame |
Param | DESC |
frame | Audio frames in PCM format |
onProcessVideoFrame: | |
dstFrame: |
Param | DESC |
dstFrame | For images after processing. |
srcFrame | For images before processing. |
dstFrame.textureId to a new texture ID in the callback API.- (void) onProcessVideoFrame:(V2TXLiveVideoFrame * _Nonnull)srcFrame dstFrame:(V2TXLiveVideoFrame * _Nonnull)dstFrame{GLuint dstTextureId = renderItemWithTexture(srcFrame.textureId, srcFrame.width, srcFrame.height);dstFrame.textureId = dstTextureId;return 0;}
- (void) onProcessVideoFrame:(V2TXLiveVideoFrame * _Nonnull)srcFrame dstFrame:(V2TXLiveVideoFrame * _Nonnull)dstFrame{thirdparty_process(srcFrame.textureId, srcFrame.width, srcFrame.height, dstFrame.textureId);return 0;}
onSetMixTranscodingConfig: | |
message: | (NSString *)msg |
Param | DESC |
code | 0: successful; other values: failed. |
msg | Error message. |
onScreenCaptureStopped: | (int)reason |
Param | DESC |
Reason | for stop. 0 : Screen capture stopped by user. 1 : On iOS platform means the screen recording is interrupted by the system; Mac, Windows means the screen sharing window is closed. 2 : On windows platform indicates that the display screen status of screen sharing is changed (such as the interface is pulled out, the projection mode is changed, etc.); other platforms do not throw. |
onLocalRecordBegin: | (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. |
storagePath | recording filePath. |
onLocalRecording: | (NSInteger)durationMs |
storagePath: | (NSString *)storagePath |
Param | DESC |
durationMs | recording duration. |
storagePath | recording filePath. |
onLocalRecordComplete: | (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. |
storagePath | recording filePath. |
onVoiceActivityDetectionUpdate: | (BOOL)active |
Param | DESC |
active | The voice starts or stops. |
피드백