onRemoteEncodedVideoFrame$info$withEncodedVideoFrame method
FutureOr<void>
onRemoteEncodedVideoFrame$info$withEncodedVideoFrame(
- dynamic streamId,
- dynamic info,
- dynamic videoFrame
override
@detail callback @author wangzhanqiang @brief Call registerRemoteEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerRemoteEncodedVideoFrameObserver} After the SDK detects the remote encoded video data, the callback is triggered @param streamId Remote stream ID. @param info Remote stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo} @param videoFrame Received remote video frame information. See ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame}
Implementation
FutureOr<void> onRemoteEncodedVideoFrame$info$withEncodedVideoFrame(
dynamic streamId, dynamic info, dynamic videoFrame) async {
if ($instance == null || $instance is! IRemoteEncodedVideoFrameObserver) {
return;
}
return ($instance as IRemoteEncodedVideoFrameObserver)
.onRemoteEncodedVideoFrame
?.call(streamId.toString());
}