Package io.agora.rtc2
Class DataStreamConfig
java.lang.Object
io.agora.rtc2.DataStreamConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether the SDK guarantees that the receiver receives the data in the sent order.booleanWhether to synchronize the data packet with the published audio packet. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
syncWithAudio
public boolean syncWithAudioWhether to synchronize the data packet with the published audio packet. - `true`: Synchronize the data packet with the audio packet. This setting is suitable for special scenarios such as lyrics synchronization. - `false`: Do not synchronize the data packet with the audio packet. This setting is suitable for scenarios where data packets need to arrive at the receiving end immediately. When you set the data packet to synchronize with the audio, then if the data packet delay is within the audio delay, the SDK triggers the `onStreamMessage` callback when the synchronized audio packet is played out. -
ordered
public boolean orderedWhether the SDK guarantees that the receiver receives the data in the sent order. - `true`: Guarantee that the receiver receives the data in the sent order. - `false`: Do not guarantee that the receiver receives the data in the sent order. Do not set this parameter as `true` if you need the receiver to receive the data packet immediately.
-
-
Constructor Details
-
DataStreamConfig
public DataStreamConfig()
-