onLocalVideoSizeChanged method

FutureOr<void> onLocalVideoSizeChanged(
  1. dynamic videoSource,
  2. dynamic frameInfo
)
override

@detail callback @author zhushufan.ref @brief 本地预览视频大小或旋转信息发生改变时,收到此回调。 @param videoSource 预留参数。 @param frameInfo 视频帧信息,参看 VideoFrameInfo{@link #VideoFrameInfo}

Implementation

FutureOr<void> onLocalVideoSizeChanged(
    dynamic videoSource, dynamic frameInfo) async {
  if ($instance == null || $instance is! IRTCEngineEventHandler) {
    return;
  }
  return ($instance as IRTCEngineEventHandler).onLocalVideoSizeChanged?.call(
      videoSource,
      packObject(
          frameInfo,
          () => VideoFrameInfo.fromMap(VideoFrameInfo.deepPackedMapValues(
              VideoFrameInfo.mapMemberToConstructorParams(frameInfo)))));
}