V2TXLivePusher class

直播推流器

Constructors

V2TXLivePusher(V2TXLiveMode liveMode)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
getter/setter pair

Methods

addListener(V2TXLivePusherObserver observer) → void
添加推流器回调
destroy() → void
销毁实例
enableCustomAudioCapture(bool enable) Future<V2TXLiveCode>
开启/关闭自定义音频采集
enableCustomVideoCapture(bool enable) Future<V2TXLiveCode>
开启/关闭自定义视频采集
enableCustomVideoProcess(bool enable) Future<V2TXLiveCode>
开启/关闭自定义视频处理
enableVolumeEvaluation(int intervalMs) Future<V2TXLiveCode>
启用采集音量大小提示
getAudioEffectManager() TXAudioEffectManager
获取音效管理对象 TXAudioEffectManager
getBeautyManager() TXBeautyManager
获取美颜管理对象 TXBeautyManager
getDeviceManager() TXDeviceManager
获取设备管理对象 TXDeviceManager
isPushing() Future<V2TXLiveCode>
当前推流器是否正在推流中
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseAudio() Future<V2TXLiveCode>
暂停推流器的音频流
pauseVideo() Future<V2TXLiveCode>
暂停推流器的视频流
removeListener(V2TXLivePusherObserver observer) → void
移除推流器回调
resumeAudio() Future<V2TXLiveCode>
恢复推流器的音频流
resumeVideo() Future<V2TXLiveCode>
恢复推流器的视频流
sendCustomAudioFrame(V2TXLiveAudioFrame audioFrame) Future<V2TXLiveCode>
在自定义音频采集模式下,将采集的音频数据发送到SDK
sendCustomVideoFrame(V2TXLiveVideoFrame videoFrame) Future<V2TXLiveCode>
在自定义视频采集模式下,将采集的视频数据发送到SDK
sendSeiMessage(int payloadType, Uint8List data) Future<V2TXLiveCode>
发送 SEI 消息
setAudioQuality(V2TXLiveAudioQuality quality) Future<V2TXLiveCode>
设置推流音频质量
setEncoderMirror(bool mirror) Future<V2TXLiveCode>
设置视频编码镜像
setMixTranscodingConfig(V2TXLiveTranscodingConfig? config) Future<V2TXLiveCode>
设置云端的混流转码参数
setProperty(String key, Object value) Future<V2TXLiveCode>
调用 V2TXLivePusher 的高级 API 接口
setRenderMirror(V2TXLiveMirrorType mirrorType) Future<V2TXLiveCode>
设置摄像头镜像类型
setRenderRotation(V2TXLiveRotation rotation) Future<V2TXLiveCode>
设置本地摄像头预览画面的旋转角度
setRenderViewID(int viewID) Future<V2TXLiveCode>
设置本地摄像头预览视图的ID
setVideoQuality(V2TXLiveVideoEncoderParam param) Future<V2TXLiveCode>
设置推流视频编码参数
setWatermark(String type, String image, double x, double y, double scale) Future<V2TXLiveCode>
设置推流器水印。默认情况下,水印不开启。
showDebugView(bool isShow) Future<V2TXLiveCode>
显示仪表盘
snapshot() Future<V2TXLiveCode>
截取推流过程中的本地画面
startCamera(bool frontCamera) Future<V2TXLiveCode>
打开本地摄像头
startMicrophone() Future<V2TXLiveCode>
打开麦克风
startPush(String url) Future<V2TXLiveCode>
开始音视频数据推流
startScreenCapture(String appGroup) Future<V2TXLiveCode>
开启屏幕采集
startVirtualCamera(String type, String imageUrl) Future<V2TXLiveCode>
开启图片推流
stopCamera() Future<void>
关闭本地摄像头
stopMicrophone() Future<V2TXLiveCode>
关闭麦克风
stopPush() Future<V2TXLiveCode>
停止推送音视频数据
stopScreenCapture() Future<V2TXLiveCode>
关闭屏幕采集
stopVirtualCamera() Future<V2TXLiveCode>
关闭图片推流
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create(V2TXLiveMode liveMode) Future<V2TXLivePusher>
创建实例