syncWithAudio property

  1. @JsonKey(name: 'syncWithAudio')
bool? syncWithAudio
final

Whether 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.

Implementation

@JsonKey(name: 'syncWithAudio')
final bool? syncWithAudio;