onExternalScreenFrameUpdate method

FutureOr<void> onExternalScreenFrameUpdate(
  1. dynamic info
)
override

@hidden @detail callback @author zhoubohui @brief After calling setOriginalScreenVideoInfo to set the original width and height of the external shared-screen stream and setting the encoding mode to the automatic mode, you will receive this callback to re-capture the stream based on the recommended pixel and framerate by RTC. @param info The recommended pixel and framerate by RTC. See FrameUpdateInfo{@link #FrameUpdateInfo}.

Implementation

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