rtcEngine$onFirstLocalVideoFrameCaptured$withFrameInfo method
FutureOr<void>
rtcEngine$onFirstLocalVideoFrameCaptured$withFrameInfo(
- dynamic engine,
- dynamic videoSource,
- dynamic frameInfo
override
@detail callback @author zhangzhenyu.samuel @brief Receive this callback when the first locally captured video/screen share screen is rendered in the local view. @param engine ByteRTCEngine object @param videoSource Video source object. Refer to ByteRTCVideoSource{@link #ByteRTCVideoSource}. @param frameInfo Video frame information. See ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo}
Implementation
FutureOr<void> rtcEngine$onFirstLocalVideoFrameCaptured$withFrameInfo(
dynamic engine, dynamic videoSource, dynamic frameInfo) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onFirstLocalVideoFrameCaptured
?.call(
videoSource,
packObject(
frameInfo,
() => VideoFrameInfo.fromMap(VideoFrameInfo.deepPackedMapValues(
VideoFrameInfo.mapMemberToConstructorParams(frameInfo)))));
}