Agora RTC Objective-C API Reference Refactor

Public Member Functions
IVideoFrameObserver2 Class Referenceabstract

## Public Member Functions
virtual void | onFrame (const char *channelId, user_id_t remoteUid, const media::base::VideoFrame *frame)=0

## Constructor & Destructor Documentation

## ◆ ~IVideoFrameObserver2()

virtual ~IVideoFrameObserver2 | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ onFrame()

virtual void onFrame | ( | const char * | channelId,
|  | user_id_t | remoteUid,
|  | const media::base::VideoFrame * | frame
| ) |  |
| pure virtual

Occurs each time the player receives a video frame.

After registering the video frame observer, the callback occurs each time receives a video frame to report the detailed information of the video frame.

Parameters

  channelId | The channel name
  remoteUid | ID of the remote user.
  frame | The detailed information of the video frame. See VideoFrame.