Agora C++ API Reference for All Platforms

Public Member Functions | List of all members
agora::media::base::IVideoFrameObserver Class Referenceabstract

Inherited by agora::media::base::IVideoFrameObserverEx, and agora::rtc::IMediaPlayerVideoFrameObserverEx.

## Public Member Functions
virtual void | onFrame (const VideoFrame *frame)=0
virtual | ~IVideoFrameObserver ()
virtual bool | isExternal ()
virtual VIDEO_PIXEL_FORMAT | getVideoFormatPreference ()

## Detailed Description

The IVideoFrameObserver class.

## Constructor & Destructor Documentation

## ◆ ~IVideoFrameObserver()

virtual agora::media::base::IVideoFrameObserver::~IVideoFrameObserver | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onFrame()

virtual void agora::media::base::IVideoFrameObserver::onFrame | ( | const VideoFrame * | frame | ) |
| pure virtual

Occurs each time the player receives a video frame.

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

Parameters

  frame | The detailed information of the video frame. See VideoFrame.

Implemented in agora::media::base::IVideoFrameObserverEx, and agora::rtc::IMediaPlayerVideoFrameObserverEx.

## ◆ isExternal()

virtual bool agora::media::base::IVideoFrameObserver::isExternal | ( |  | ) |
| inline virtual

Reimplemented in agora::rtc::IMediaPlayerVideoFrameObserverEx, and agora::media::base::IVideoFrameObserverEx.

## ◆ getVideoFormatPreference()

virtual VIDEO_PIXEL_FORMAT agora::media::base::IVideoFrameObserver::getVideoFormatPreference | ( |  | ) |
| inline virtual