onFirstRemoteAudioFrame property
@detail callback
@author zhangyuanyuan.0101
@brief The subscriber will receive this callback when the first frame of the receiving audio stream begins to decode. The following situations are included:
1. The publisher publishes audio, including the initial publication and restart after cancellation.
2. After the publisher stops audio capture, they restart it. When using an external source, this involves stopping the stream and then streaming again.
3. After the publisher publishes audio, the subscriber cancels the subscription to audio and then re-subscribes to it.
@param streamId Remote stream ID
@param streamInfo Remote Stream Information. See StreamInfo{@link #StreamInfo}
@note The callback will be received when the user has just received each audio stream subscribed to in the room.
Implementation
FutureOr<void> Function(String streamId, StreamInfo streamInfo)?
onFirstRemoteAudioFrame;