onFirstRemoteVideoFrameDecoded property
@detail callback
@author zhushufan.ref
@brief The subscriber will receive this callback when the first frame of the receiving video stream begins to decode. The following situations are included:
1. The publisher publishes video, including the initial publication and restart after cancellation.
2. After the publisher stops video capture, they restart it. When using an external source, this involves stopping the stream and then streaming again.
3. After the publisher publishes video, the subscriber cancels the subscription to video and then re-subscribes to it.
@param streamId Remote stream ID
@param streamInfo Remote Stream Information, see StreamInfo {@link #StreamInfo}
@param frameInfo Video Frame Information, see VideoFrameInfo {@link #VideoFrameInfo}
@note
- For main stream, after joining the room, the subscriber will receive this callback only when the publisher publishes video stream for the first time.
- For screen-sharing stream, the subscriber will receive this callback every time the publisher publishes or republishes the screen video stream.
Implementation
FutureOr<void> Function(
String streamId, StreamInfo streamInfo, VideoFrameInfo frameInfo)?
onFirstRemoteVideoFrameDecoded;