V2TXLivePusherListenerType enum

Callback notification for Tencent Cloud Live streaming.
Some callback events of V2TXLivePusher include ingest status, ingest volume, statistics, warnings, and error messages.

Inheritance

Constructors

V2TXLivePusherListenerType()
const

Values

onError → const V2TXLivePusherListenerType

Error callbacks indicate that the SDK is unrecoverable, and must be listened to and given appropriate UI prompts to the user according to the situation

Parameter:

code Error code(V2TXLiveCode

msg Error message(String)

extraInfo Extended Information (Map)

onWarning → const V2TXLivePusherListenerType

A warning callback to inform you of non-critical issues, such as stuttering or recoverable decoding failures.

Parameter:

code Warning code(V2TXLiveCode

msg Warning message(String)

extraInfo Extended Information (Map)

onCaptureFirstAudioFrame → const V2TXLivePusherListenerType

Callback notification that the first frame of audio capture is completed

onCaptureFirstVideoFrame → const V2TXLivePusherListenerType

Callback notification when the first frame of video capture is completed

onMicrophoneVolumeUpdate → const V2TXLivePusherListenerType

The microphone collects the volume value callback

Parameter:

volume volume (int)

onPushStatusUpdate → const V2TXLivePusherListenerType

Callback notification of the connection status of the streamer

Parameter:

status status(String)

errMsg Connection status information(String)

extraInfo Extended Information (Map)

onStatisticsUpdate → const V2TXLivePusherListenerType

Callback of live streaming data of the live streamer

Parameter:

appCpu CPU usage of the current app (%) (int)

systemCpu CPU Utilization of Current System (%) (int)

width Video width(int)

height Video height(int)

fps Frame rate(int)

videoBitrate Video bitrate(Kbps)(int)

audioBitrate Audio bitrate(Kbps)(int)

onSnapshotComplete → const V2TXLivePusherListenerType

Screenshot callback

Parameter:

image Captured video footage (Uint8List)

onGLContextCreated → const V2TXLivePusherListenerType

Notification of create of the OpenGL environment inside the SDK

onProcessVideoFrame → const V2TXLivePusherListenerType

Custom video processing callbacks

onGLContextDestroyed → const V2TXLivePusherListenerType

Notification of destruction of the OpenGL environment inside the SDK

onSetMixTranscodingConfig → const V2TXLivePusherListenerType

Set the callback for the MixTranscoding parameter in the cloud

Parameter:

errCode Error code(V2TXLiveCode

errMsg Error message(String)

onScreenCaptureStarted → const V2TXLivePusherListenerType

When screen sharing starts, the SDK notifies you with this callback

onScreenCaptureStopped → const V2TXLivePusherListenerType

When screen sharing stops, the SDK notifies you with this callback

onMusicObserverStart → const V2TXLivePusherListenerType

The audio starts playing

Parameter:

id Music ID (int)

errCode Error code (int)

onMusicObserverPlayProgress → const V2TXLivePusherListenerType

Audio playing

Parameter:

id Music ID (int)

progressMs Playback progress(long)

durationMs Total duration(long)

onMusicObserverComplete → const V2TXLivePusherListenerType

Audio playback ends

Parameter:

id Music ID (int)

errCode Error code (int)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<V2TXLivePusherListenerType>
A constant List of the values in this enum, in order of their declaration.