onRemoteUserAudioFrame method

FutureOr<void> onRemoteUserAudioFrame(
  1. String streamId,
  2. StreamInfo streamInfo,
  3. IAudioFrame audioFrame
)

@detail callback @author wangjunzheng @brief Returns the audio data of one remote user. @param streamId Remote stream ID. @param streamInfo Remote stream information. See StreamInfo{@link #StreamInfo}. @param audioFrame Audio data. See IAudioFrame{@link #IAudioFrame}. @note This callback works on the playback thread. Don't do anything time-consuming in this callback, or it may affect the entire audio playback chain.

Implementation

FutureOr<void> onRemoteUserAudioFrame(
    String streamId, StreamInfo streamInfo, IAudioFrame audioFrame) async {}