registerVideoEncodedFrameObserver abstract method

void registerVideoEncodedFrameObserver(
  1. VideoEncodedFrameObserver observer
)

Registers a video frame observer for encoded video images.

If you only want to observe encoded video frames (such as H.264 format) without decoding and rendering, Agora recommends that you register a VideoEncodedFrameObserver class using this method. This method must be called before joining a channel.

  • observer Video frame observer. See VideoEncodedFrameObserver.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

void registerVideoEncodedFrameObserver(VideoEncodedFrameObserver observer);