V2TXLivePlayer class
Constructors
Properties
Methods
-
addListener(
V2TXLivePlayerObserver func) → 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 func) → 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> - 设置画面的填充模式。 mode 画面填充模式 {@link V2TXLiveDef.V2TXLiveFillMode}。
-
setRenderRotation(
V2TXLiveRotation rotation) → Future< V2TXLiveCode> - 摄像头镜像类型 rotation 旋转角度 {@link V2TXLiveDef.V2TXLiveRotation}
-
setRenderViewID(
int viewID) → Future< V2TXLiveCode> - 设置本地摄像头预览视图的ID 本地摄像头采集到的画面,经过美颜、脸形调整、滤镜等多种效果叠加之后,最终会显示到传入的 View 上。 @param identifier 本地摄像头预览视图id @return 返回值 {@link V2TXLiveCode} - V2TXLIVE_OK:成功
-
showDebugView(
bool isShow) → Future< void> - 是否显示播放器状态信息的调试浮层。
-
snapshot(
) → Future< V2TXLiveCode> - 截取播放过程中的视频画面。
-
startLivePlay(
String url) → Future< V2TXLiveCode> - 开始播放音视频流。 url 音视频流的播放地址,支持 RTMP, HTTP-FLV, TRTC。
-
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>