V2TXLivePlayer class
直播播放器
Constructors
Properties
Methods
-
addListener(
V2TXLivePlayerObserver observer) → void - 添加播放器回调
-
destroy(
) → void - 销毁实例
-
enableObserveVideoFrame(
bool enable, int pixelFormat, int bufferType) → Future< V2TXLiveCode> - 开启/关闭对视频帧的监听回调
-
enableReceiveSeiMessage(
bool enable, int payloadType) → Future< V2TXLiveCode> - 开启接收 SEI 消息
-
enableVolumeEvaluation(
int intervalMs) → Future< V2TXLiveCode> - 启用播放音量大小提示
-
isPlaying(
) → Future< V2TXLiveCode> - 播放器是否正在播放中
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseAudio(
) → Future< V2TXLiveCode> - 暂停播放器的音频流
-
pauseVideo(
) → Future< V2TXLiveCode> - 暂停播放器的视频流
-
removeListener(
V2TXLivePlayerObserver observer) → void - 移除播放器回调
-
resumeAudio(
) → Future< V2TXLiveCode> - 恢复播放器的音频流
-
resumeVideo(
) → Future< V2TXLiveCode> - 恢复播放器的视频流
-
setCacheParams(
double minTime, double maxTime) → Future< V2TXLiveCode> - 设置播放器缓存自动调整的最小和最大时间 ( 单位:秒 )
-
setPlayoutVolume(
int volume) → Future< V2TXLiveCode> - 设置播放器音量
-
setProperty(
String key, Object value) → Future< V2TXLiveCode> - 调用 V2TXLivePlayer 的高级 API 接口
-
setRenderFillMode(
V2TXLiveFillMode mode) → Future< V2TXLiveCode> - 设置画面的填充模式
-
setRenderRotation(
V2TXLiveRotation rotation) → Future< V2TXLiveCode> - 设置本地渲染画面旋转角度
-
setRenderViewID(
int viewID) → Future< V2TXLiveCode> - 设置渲染视图的ID
-
showDebugView(
bool isShow) → Future< void> - 显示仪表盘
-
snapshot(
) → Future< V2TXLiveCode> - 截取播放过程中的视频画面
-
startLivePlay(
String url) → Future< V2TXLiveCode> - 开始播放音视频流
-
stopPlay(
) → Future< V2TXLiveCode> - 停止播放音视频流
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → Future< V2TXLivePlayer> - 创建实例