V2TXLivePlayerListenerType enum

Player callback notification of Tencent Cloud Live.
You can receive some callback notifications from V2TXLivePlayer, including player status, playback volume callback, audio and video first frame callback, statistics, warnings, and error messages.

Inheritance

Constructors

V2TXLivePlayerListenerType()
const

Values

onError → const V2TXLivePlayerListenerType

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 V2TXLivePlayerListenerType

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)

onVideoResolutionChanged → const V2TXLivePlayerListenerType

Notification of the change in the resolution of the live broadcast player

Parameter:

width Video width(int)

height Video height(int)

onConnected → const V2TXLivePlayerListenerType

You have successfully connected to the server

Parameter:

extraInfo Extended Information (Map)

onVideoPlaying → const V2TXLivePlayerListenerType

Video playback events

Parameter:

firstPlay The flag of the first play(bool)

extraInfo Extended Information (Map)

onAudioPlaying → const V2TXLivePlayerListenerType

Audio playback events

Parameter:

firstPlay The flag of the first play(bool)

extraInfo Extended Information (Map)

onVideoLoading → const V2TXLivePlayerListenerType

Video load events

Parameter:

extraInfo Extended Information (Map)

onAudioLoading → const V2TXLivePlayerListenerType

Audio load event

Parameter:

extraInfo Extended Information (Map)

onPlayoutVolumeUpdate → const V2TXLivePlayerListenerType

Player volume

Parameter:

volume Volume (int) in the range of 0 to 100.

onStatisticsUpdate → const V2TXLivePlayerListenerType

Callback for live player statistics

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 V2TXLivePlayerListenerType

Screenshot callback

Parameter:

image Captured video footage (Uint8List)

onRenderVideoFrame → const V2TXLivePlayerListenerType

Custom video rendering callbacks

Parameter:

videoFrame Video frame data (Map)

onReceiveSeiMessage → const V2TXLivePlayerListenerType

A callback is received for the SEI message

Parameter:

payloadType The type of message (int)

data The content of message (Uint8List)

onPictureInPictureStateUpdate → const V2TXLivePlayerListenerType

Picture-in-picture status change callback

Parameter:

state state code (int)

message message(String)

extraInfo Extended Information (Map)

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<V2TXLivePlayerListenerType>
A constant List of the values in this enum, in order of their declaration.