V2TXLivePusherObserver
to receive callbacks of V2TXLivePusher, including the publisher status, first audio/video frame, statistics, and warning and error messages.V2TXLivePusherListenerType.onError
Parameter | Type | Description |
code | V2TXLiveCode | Error code |
msg | String | Error message |
extraInfo | Map | Extra information |
V2TXLivePusherListenerType.onWarning
Parameter | Type | Description |
code | V2TXLiveCode | Warning code |
msg | String | Warning message |
extraInfo | Map | Extra information |
V2TXLivePusherListenerType.onPushStatusUpdate
Parameter | Type | Description |
status | V2TXLivePushStatus | Status code |
msg | String | Status message |
extraInfo | Map | Extra information |
V2TXLivePushStatus
enumerated valuesValue | Description |
V2TXLivePushStatusDisconnected: 0 | Disconnected from the server |
V2TXLivePushStatusConnecting: 1 | Connecting to the server |
V2TXLivePushStatusConnectSuccess: 2 | Connected to the server |
V2TXLivePushStatusReconnecting: 3 | Reconnecting to the server |
V2TXLivePusherListenerType.onSnapshotComplete
Parameter | Type | Description |
image | Uint8List | Screenshot taken |
V2TXLivePusher.enableCustomVideoProcess(bool enable, V2TXLivePixelFormat pixelFormat, V2TXLiveBufferType bufferType)
to enable custom video processing.V2TXLivePusherListenerType.onProcessVideoFrame
Parameter | Type | Description |
srcFrame | Map | For images before processing |
dstFrame | Map | For images after processing |
V2TXLivePusherListenerType.onGLContextDestroyed
V2TXLivePusherListenerType.onCaptureFirstVideoFrame
V2TXLivePusherListenerType.onCaptureFirstAudioFrame
V2TXLivePusherListenerType.onMicrophoneVolumeUpdate
V2TXLivePusherListenerType.onStatisticsUpdate
Parameter | Type | Description |
statistics | Map | Publisher statistics |
V2TXLivePusher.setMixTranscodingConfig(V2TXLiveTranscodingConfig config)
to set On-Cloud MixTranscoding parameters.V2TXLivePusherListenerType.onSetMixTranscodingConfig
Parameter | Type | Description |
code | V2TXLiveCode | 0 : successful; other values: failed |
msg | String | Error message |
Was this page helpful?