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 | (int code |
| String msg |
| Bundle extraInfo) |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Error message. |
void onWarning | (int code |
| String msg |
| Bundle extraInfo) |
Param | DESC |
code | |
extraInfo | Extended information. |
msg | Warning message. |
void onMicrophoneVolumeUpdate | (int volume) |
Param | DESC |
volume | Current volume value for collection. |
void onPushStatusUpdate | |
| String msg |
| Bundle extraInfo) |
Param | DESC |
extraInfo | Extended information. |
msg | Connection status message. |
status |
void onStatisticsUpdate |
Param | DESC |
statistics |
void onSnapshotComplete | (Bitmap image) |
Param | DESC |
image | Captured video image. |
void onProcessAudioFrame | (V2TXLiveDef.V2TXLiveAudioFrame frame) |
Param | DESC |
frame | Audio frames in PCM format |
int onProcessVideoFrame | |
|
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 | (int code |
| String 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 | (int code |
| String 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 | (long durationMs |
| String storagePath) |
Param | DESC |
durationMs | recording duration. |
storagePath | recording filePath. |
void onLocalRecordComplete | (int code |
| String 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 | (boolean active) |
Param | DESC |
active | The voice starts or stops. |
Was this page helpful?