syncWithAudio property

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

Whether to synchronize with the locally sent audio stream. true : The data stream is synchronized with the audio stream. Suitable for scenarios like lyrics synchronization. false : The data stream is not synchronized with the audio stream. Suitable for scenarios where data packets need to reach the receiver immediately. When synchronization is enabled, if the data packet delay is within the audio delay range, the SDK triggers the onStreamMessage callback synchronized with the audio packet during audio playback.

Implementation

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