V2TXLivePlayerObserver
to receive callbacks of V2TXLivePlayer, including the player status, playback volume, first audio/video frame, statistics, and warning and error messages.V2TXLivePlayerListenerType.onError
Parameter | Type | Description |
code | V2TXLiveCode | Error code |
msg | String | Error message |
extraInfo | Map | Extra information |
V2TXLivePlayerListenerType.onWarning
Parameter | Type | Description |
code | V2TXLiveCode | Warning code |
msg | String | Warning message |
extraInfo | Map | Extra information |
V2TXLivePlayerListenerType.onConnected
Parameter | Type | Description |
extraInfo | Map | Extra information |
V2TXLivePlayerListenerType.onVideoPlaying
Parameter | Type | Description |
firstPlay | bool | Whether it is the first playback |
extraInfo | Map | Extra information |
V2TXLivePlayerListenerType.onVideoLoading
Parameter | Type | Description |
extraInfo | Map | Extra information |
V2TXLivePlayerListenerType.onVideoResolutionChanged
Parameter | Type | Description |
width | int | Video width |
height | int | Video height |
V2TXLivePlayerListenerType.onSnapshotComplete
Parameter | Type | Description |
image | Uint8List | Screenshot taken |
V2TXLivePlayer.enableCustomRendering(pixelFormat:bufferType:)
to enable custom video rendering.V2TXLivePlayerListenerType.onRenderVideoFrame
Parameter | Type | Description |
videoFrame | Map | Video frames |
V2TXLivePlayerListenerType.onAudioPlaying
Parameter | Type | Description |
firstPlay | bool | Whether it is the first playback |
extraInfo | Map | Extra information |
V2TXLivePlayerListenerType.onAudioLoading
Parameter | Type | Description |
extraInfo | Map | Extra information |
V2TXLivePlayerListenerType.onPlayoutVolumeUpdate
Parameter | Type | Description |
volume | int | Volume. Value range: 0-100. |
V2TXLivePlayerListenerType.onStatisticsUpdate
Parameter | Type | Description |
statistics | Map | Player statistics |
Was this page helpful?