onLocalEncodedVideoFrame$Frame method
@detail callback @brief After calling registerLocalEncodedVideoFrameObserver:{@link #ByteRTCEngine#registerLocalEncodedVideoFrameObserver}, SDK will trigger this callback when it receives local video frames. @param videoSource Local video source. See ByteRTCVideoSource{@link #ByteRTCVideoSource} @param frame Information about the local video frame. See ByteRTCEncodedVideoFrame{@link #ByteRTCEncodedVideoFrame}.
Implementation
FutureOr<void> onLocalEncodedVideoFrame$Frame(
dynamic videoSource, dynamic frame) async {
if ($instance == null || $instance is! ILocalEncodedVideoFrameObserver) {
return;
}
return ($instance as ILocalEncodedVideoFrameObserver)
.onLocalEncodedVideoFrame
?.call(videoSource);
}