DataStreamConfig class Null safety

The configurations for the data stream.

The following table shows the relationship between the syncWithAudio parameter and the ordered parameter:

syncWithAudioorderedSDK behaviors
falsefalseThe SDK triggers the streamMessage callback immediately after the receiver receives a data packet.
truefalseIf the data packet delay is within the audio delay, the SDK triggers the streamMessage callback when the synchronized audio packet is played out. If the data packet delay exceeds the audio delay, the SDK triggers the streamMessage callback as soon as the data packet is received. In this case, the data packet is not synchronized with the audio packet.
falsetrueIf the delay of a data packet is within five seconds, the SDK corrects the order of the data packet. If the delay of a data packet exceeds five seconds, the SDK discards the data packet.
truetrueIf the delay of a data packet is within the audio delay, the SDK corrects the order of the data packet. If the delay of a data packet exceeds the audio delay, the SDK discards this data packet.
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
Whether the SDK guarantees that the receiver receives the data in the sent order. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
syncWithAudio bool
Whether to synchronize the data packet with the published audio packet. [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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