DataStreamConfig class
数据流设置。
下表展示了 syncWithAudio 参数和 ordered 参数的关系:
syncWithAudio | ordered | SDK 行为 |
---|---|---|
false | false | 接收端接收到数据包后,SDK 立刻触发 streamMessage 回调。 |
true | false |
|
false | true |
|
true | true |
|
- Annotations
- @JsonSerializable(explicitToJson: true)
Constructors
- DataStreamConfig({bool syncWithAudio, bool ordered})
- Constructs a DataStreamConfig
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- ordered ↔ bool
-
是否保证接收到的数据按发送的顺序排列。 [...]
@JsonKey(includeIfNull: false), read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- syncWithAudio ↔ bool
-
是否与本地发送的音频流同步。 [...]
@JsonKey(includeIfNull: false), read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited