V2TXLivePlayerListenerType enum
腾讯云直播的播放器回调通知。
可以接收 V2TXLivePlayer 播放器的一些回调通知,包括播放器状态、播放音量回调、音视频首帧回调、统计数据、警告和错误信息等。
Constructors
- V2TXLivePlayerListenerType()
-
const
Values
- onError → const V2TXLivePlayerListenerType
-
错误回调,表示 SDK 不可恢复的错误,一定要监听并分情况给用户适当的界面提示
参数:
code错误码(V2TXLiveCode)msg错误信息(String)extraInfo扩展信息(Map) - onWarning → const V2TXLivePlayerListenerType
-
警告回调,用于告知您一些非严重性问题,例如出现卡顿或者可恢复的解码失败。
参数:
code警告码(V2TXLiveCode)msg警告信息(String)extraInfo扩展信息(Map) - onVideoResolutionChanged → const V2TXLivePlayerListenerType
-
直播播放器分辨率变化通知
参数:
width视频宽(int)height视频高(int) - onConnected → const V2TXLivePlayerListenerType
-
已经成功连接到服务器
参数:
extraInfo扩展信息(Map) - onVideoPlaying → const V2TXLivePlayerListenerType
-
视频播放事件
参数:
firstPlay第一次播放标志(bool)extraInfo扩展信息(Map) - onAudioPlaying → const V2TXLivePlayerListenerType
-
音频播放事件
参数:
firstPlay第一次播放标志(bool)extraInfo扩展信息(Map) - onVideoLoading → const V2TXLivePlayerListenerType
-
视频加载事件
参数:
extraInfo扩展信息(Map) - onAudioLoading → const V2TXLivePlayerListenerType
-
音频加载事件
参数:
extraInfo扩展信息(Map) - onPlayoutVolumeUpdate → const V2TXLivePlayerListenerType
-
播放器音量大小
参数:
volume音量大小(int),取值范围:0 - 100。 - onStatisticsUpdate → const V2TXLivePlayerListenerType
-
直播播放器统计数据回调
参数:
appCpu当前 App 的 CPU 使用率(%)(int)systemCpu当前系统的 CPU 使用率(%)(int)width视频宽度(int)height视频高度(int)fps帧率(int)videoBitrate视频码率(Kbps)(int)audioBitrate音频码率(Kbps)(int) - onSnapshotComplete → const V2TXLivePlayerListenerType
-
截图回调
参数:
image已截取的视频画面(Uint8List) - onRenderVideoFrame → const V2TXLivePlayerListenerType
-
自定义视频渲染回调
参数:
videoFrame视频帧数据(Map) - onReceiveSeiMessage → const V2TXLivePlayerListenerType
-
收到 SEI 消息的回调
参数:
payloadType消息类型(int)data消息内容(Uint8List)
Properties
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.
[onError, onWarning, onVideoResolutionChanged, onConnected, onVideoPlaying, onAudioPlaying, onVideoLoading, onAudioLoading, onPlayoutVolumeUpdate, onStatisticsUpdate, onSnapshotComplete, onRenderVideo…