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. |
- (void)onError: | (V2TXLiveCode)code |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
code | Error code V2TXLiveCode. |
extraInfo | Extended information. |
msg | Error message. |
- (void)onWarning: | (V2TXLiveCode)code |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
code | Warning code V2TXLiveCode. |
extraInfo | Extended information. |
msg | Warning message. |
- (void)onMicrophoneVolumeUpdate: | (NSInteger)volume |
Param | DESC |
volume | Current volume value for collection. |
- (void)onPushStatusUpdate: | (V2TXLivePushStatus)status |
message: | (NSString *)msg |
extraInfo: | (NSDictionary *)extraInfo |
Param | DESC |
extraInfo | Extended information. |
msg | Connection status message. |
status | Pusher connection status V2TXLivePushStatus . |
- (void)onStatisticsUpdate: | (V2TXLivePusherStatistics *)statistics |
Param | DESC |
statistics | Pusher statistics V2TXLivePusherStatistics . |
- (void)onSnapshotComplete: | (nullable TXImage *)image |
Param | DESC |
image | Captured video image. |
- (void) onProcessAudioFrame: | (V2TXLiveAudioFrame *)frame |
Param | DESC |
frame | Audio frames in PCM format |
- (void)onProcessVideoFrame: | (V2TXLiveVideoFrame * _Nonnull)srcFrame |
dstFrame: | (V2TXLiveVideoFrame * _Nonnull)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)onSetMixTranscodingConfig: | (V2TXLiveCode)code |
message: | (NSString *)msg |
Param | DESC |
code | 0: successful; other values: failed. |
msg | Error message. |
- (void)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. |
- (void)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. |
- (void)onLocalRecording: | (NSInteger)durationMs |
storagePath: | (NSString *)storagePath |
Param | DESC |
durationMs | recording duration. |
storagePath | recording filePath. |
- (void)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. |
- (void)onVoiceActivityDetectionUpdate: | (BOOL)active |
Param | DESC |
active | The voice starts or stops. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan