onPlaybackAudioFrame method
@detail callback @author wangjunzheng @brief Returns the mixed audio data of all remote users subscribed by the local user. @param audioFrame Audio data. See IAudioFrame{@link #IAudioFrame}.
Implementation
FutureOr<void> onPlaybackAudioFrame(dynamic audioFrame) async {
if ($instance == null || $instance is! IAudioFrameObserver) {
return;
}
return ($instance as IAudioFrameObserver).onPlaybackAudioFrame?.call(
packObject(
audioFrame,
() => AudioFrame.fromMap(AudioFrame.deepPackedMapValues(
AudioFrame.mapMemberToConstructorParams(audioFrame)))));
}