PushSingleStreamParam class

@brief 单流推流参数

Inheritance

Constructors

PushSingleStreamParam({required String roomId, required String userId, String url = '', List<DestInfo>? destInfos, SingleStreamPushType pushType = $p.SingleStreamPushType.cdn})
PushSingleStreamParam.toCDN({required String roomId, required String userId, required String url})
PushSingleStreamParam.toRTCRoom({required String roomId, required String userId, required List<DestInfo> destInfos})

Properties

$instance → dynamic
no setterinherited
destInfos List<DestInfo>
@brief 跨房间转发的目标房间信息数组,默认值为 null。
当你需要将当前房间的媒体流转发到其他房间时,可以通过这个列表指定多个目标房间的信息。
每个 DestInfo 包含目标房间的 roomId 和 userId。详见 DestInfo{@link DestInfo}。
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isScreen bool
@brief 媒体流是否为屏幕流。
getter/setter pairinherited
pushType SingleStreamPushType
@brief 单流转推类型,指定将媒体流转推到 CDN 还是 RTC 房间,默认值为转推到 CDN。参见 SingleStreamPushType{@link SingleStreamPushType}。
getter/setter pairinherited
roomId String
@brief 媒体流所在的房间 ID
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
@brief 推流 CDN 地址。仅支持 RTMP 协议,Url 必须满足正则 /^rtmps?:\\/\\//
本参数不支持过程中更新。
getter/setter pairinherited
userId String
@brief 媒体流所属的用户 ID
getter/setter pairinherited

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
inherited
$destroy() → void
inherited
$init(List args) → void
inherited
findOverrideIndices(List args, List<List<int>> indicesList) List<int>
查找重载参数下标列表 @desc android 构造函数存在重载 此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
fn2AndroidClass(Function callback, dynamic nativeClass(), String methodName) → dynamic
与 ts runtime 中的 fn2AndroidClass 功能一致 将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
transformToPlatformConstructorArgs(List args, List<int> indices, Map<String, dynamic> typeMap, Map<String, dynamic> enumMap, Map<String, dynamic> classMap, String platformVar) List
实例化参数处理 将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
updateInstance(dynamic instance) → void
inherited

Operators

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