SubscribeConfig class

Inheritance
  • Object
  • PackClass
  • SubscribeConfig

Constructors

SubscribeConfig({required bool isScreen, required int videoIndex, required int subVideoIndex, required int framerate, bool? subscribeVideo, bool? subscribeAudio, required int svcLayer, int? width, int? height, SubscribeConfig? android_oldConfig, bool? subVideo, bool? subAudio, int? subWidth, int? subHeight, bool? $disableInit})
SubscribeConfig.fromMap(Map<String, dynamic> map)
factory

Properties

$instance → dynamic
no setterinherited
framerate int
@brief Expected maximum frame rate of the subscribed stream in px. The default value is 0, values greater than 10 are valid.
If the frame rate of the stream published is higher than the value set by the subscriber, the subscriber receives the video of the frame rate set by this API; if the frame rate of the stream published is lower than the value set by the subscriber, the subscriber receives the video of the same frame rate of the video published.
Only valid if the stream is coded with SVC technique.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int?
@platform ios @brief The height in px of the subscription, the default value is 0.
getter/setter pair
isScreen bool
@brief Whether the stream is from screen sharing
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subAudio bool?
@platform android @brief Whether audio stream is included
getter/setter pair
subHeight int?
@platform android @brief Height of the video stream in px
getter/setter pair
subscribeAudio bool?
@platform ios @brief Whether to subscribe to audio.
The user selects whether to subscribe to audio in the remote stream by setting this parameter. YES is subscribed audio, NO is not subscribed audio, the default value is YES.
getter/setter pair
subscribeVideo bool?
@platform ios @brief Whether to subscribe to videos.
The user selects whether to subscribe to videos in the remote stream by setting this parameter. YES is a subscription video, NO is a non-subscription video, the default value is YES.
getter/setter pair
subVideo bool?
@platform android @brief Whether video stream is included
getter/setter pair
subVideoIndex int
@hidden for internal use only
getter/setter pair
subWidth int?
@platform android @brief Width of the video stream in px
getter/setter pair
svcLayer int
@platform ios @brief Time domain hierarchy of the subscribed video stream, default value is 0.
getter/setter pair
videoIndex int
@brief Subscribed video stream resolution subscript.
Users can publish multiple videos of different resolutions in a stream. Therefore, when subscribing to a stream, you need to specify the specific resolution of the subscription. This parameter is used to specify the subscript of the resolution to be subscribed to, and the default value is 0.
getter/setter pair
width int?
@platform ios @brief The width in px of the subscription, the default value is 0.
getter/setter pair

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
override
$destroy() → void
inherited
$init(List args) → void
inherited
android_equals(Object o) Future<bool?>
@platform android @hidden constructor/destructor
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

Operators

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

Static Methods

deepPackedMapValues(Map<String, dynamic> map) → dynamic
mapMemberToConstructorParams(Map json) Map<String, dynamic>