onLocalEncodedVideoFrame method

FutureOr<void> onLocalEncodedVideoFrame(
  1. dynamic videoSource,
  2. dynamic encodedVideoFrame
)
override

@detail callback @brief After calling registerLocalEncodedVideoFrameObserver{@link #RTCEngine#registerLocalEncodedVideoFrameObserver}, SDK will trigger this callback when it receives local video frames. @param videoSource Reserved parameter @param encodedVideoFrame Information about the local video frame. See RTCEncodedVideoFrame{@link #RTCEncodedVideoFrame} @note encodedVideoFrame is only valid within the scope of the callback function. Do not store this parameter and access the memory data of this parameter in other functions

Implementation

FutureOr<void> onLocalEncodedVideoFrame(
    dynamic videoSource, dynamic encodedVideoFrame) async {
  if ($instance == null || $instance is! ILocalEncodedVideoFrameObserver) {
    return;
  }
  return ($instance as ILocalEncodedVideoFrameObserver)
      .onLocalEncodedVideoFrame
      ?.call(videoSource);
}