MixedStreamControlConfig class
- Inheritance
-
- Object
- PackClass
- MixedStreamControlConfig
Constructors
-
MixedStreamControlConfig({required bool enableVolumeIndication, required float volumeIndicationInterval, required int talkVolume, required bool isAddVolumeValue, required MixedStreamSEIContentMode seiContentMode, required int seiPayloadType, required String seiPayloadUuid, required MixedStreamMediaType mediaType, required MixedStreamPushMode pushStreamMode, bool? $disableInit})
-
-
MixedStreamControlConfig.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
$instance
→ dynamic
-
no setterinherited
-
enableVolumeIndication
↔ bool
-
@valid since 3.56
@detail api
@brief Sets whether to enable the function of separately sending sound indication SEI.
@param enableVolumeIndication Whether to enable the function of separately sending sound indication SEI:
- true: Enable.
- false: Disable. Default setting.
@note After setting this method to "true", you can choose whether to send sound indication SEI only through seiContentMode{@link #MixedStreamControlConfig#seiContentMode}.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isAddVolumeValue
↔ bool
-
@valid since 3.56
@brief Sets whether volume value is contained in the sound indication SEI.
@param addVolumeValue Whether volume value is contained in the sound indication SEI:
- true: Yes.
- false: No. Default setting.
getter/setter pair
-
mediaType
↔ MixedStreamMediaType
-
@valid since 3.57
@detail api
@brief Sets the type of media stream pushed to CDN after being mixed.
@param mediaType See MixedStreamMediaType{@link #MixedStreamMediaType}.
The default value is 0,which means pushing both audio and video. Pushing video only is not supported currently.
getter/setter pair
-
pushStreamMode
↔ MixedStreamPushMode
-
@valid since 3.57
@detail api
@brief Sets whether to initiate a stream mixing task in the absence of any users publishing streams.
@param pushStreamMode The initiation mode. See MixedStreamPushMode{@link #MixedStreamPushMode}.
Once the stream mixing task is initiated, this parameter can not be updated any more.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
seiContentMode
↔ MixedStreamSEIContentMode
-
@valid since 3.56
@detail api
@brief Sets SEI content.
@param seiContentMode SEI content. See MixedStreamSEIContentMode{@link #MixedStreamSEIContentMode}.
getter/setter pair
-
seiPayloadType
↔ int
-
@valid since 3.56
@detail api
@author liujingchao
@brief Set SEI payload type.
@param seiPayloadType The default value is
100, and the value supported is 5 and 100.
@return MixedStreamControlConfig, See MixedStreamControlConfig{@link# MixedStreamControlConfig}.
@note During the process of pushing streams to CDN, you cannot change the parameter.
getter/setter pair
-
seiPayloadUuid
↔ String
-
@valid since 3.56
@detail api
@author liujingchao
@brief Set SEI Payload UUID.
@param seiPayloadUuid The length of PayloadUUID should be 32 bits, or you will receive an error code of 1091. Each character of the parameter should be within the range of
0, 9 a, f A, F.
The PayloadUUID should not contain -. If the automatically generated UUID contains -, you should delete it.
@return MixedStreamControlConfig, See MixedStreamControlConfig{@link# MixedStreamControlConfig}.
@note When PayloadType is 5, you must set PayloadUUID, or you will receive a callback indicating parameter error. The error code is 1091.
When PayloadType is not 5, it is not required to set PayloadUUID. If filled, it will be ignored by the backend.
During the process of pushing streams to CDN, you cannot change the parameter.
getter/setter pair
-
talkVolume
↔ int
-
@detail api
@brief Sets the effective volume.
@param talkVolume Effective volume. The range is
0, 255. The default value is 0.
If the value is set beyond the range, it will be automatically adjusted to the default value 0.
getter/setter pair
-
volumeIndicationInterval
↔ float
-
@valid since 3.56
@detail api
@brief Sets the sound indication interval.
@param volumeIndicationInterval Sound indication interval in s. The range is [0.3,+∞). The default value is 2.
If a decimal with two or more decimal places is passed in, it will be rounded to the value of the first decimal place. For example, if you pass in 0.36, it will be automatically adjusted to 0.4.
getter/setter pair
Methods
-
$createInstance(List args)
→ dynamic
-
Factory method for creating instances
override
-
$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>
-
-
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