Agora C++ API Reference for All Platforms

Public Member Functions | List of all members
agora::rtc::IMediaPlayerVideoFrameObserverEx Class Referenceabstract

Inherits agora::media::base::IVideoFrameObserver.

## Public Member Functions
virtual | ~IMediaPlayerVideoFrameObserverEx ()
virtual void | onFrame (const agora::media::base::VideoFrame *frame) final
virtual void | onFrame (webrtc::VideoFrame &videoFrame)=0
bool | isExternal () final
Public Member Functions inherited from agora::media::base::IVideoFrameObserver
virtual | ~IVideoFrameObserver ()
virtual VIDEO_PIXEL_FORMAT | getVideoFormatPreference ()

## Detailed Description

The IMediaPlayerVideoFrameObserverEx class.

## Constructor & Destructor Documentation

## ◆ ~IMediaPlayerVideoFrameObserverEx()

virtual agora::rtc::IMediaPlayerVideoFrameObserverEx::~IMediaPlayerVideoFrameObserverEx | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onFrame() [1/2]

virtual void agora::rtc::IMediaPlayerVideoFrameObserverEx::onFrame | ( | const agora::media::base::VideoFrame * | frame | ) |
| inline final 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.

Implements agora::media::base::IVideoFrameObserver.

## ◆ onFrame() [2/2]

virtual void agora::rtc::IMediaPlayerVideoFrameObserverEx::onFrame | ( | webrtc::VideoFrame & | videoFrame | ) |
| pure virtual

## ◆ isExternal()

bool agora::rtc::IMediaPlayerVideoFrameObserverEx::isExternal | ( |  | ) |
| inline final virtual

Reimplemented from agora::media::base::IVideoFrameObserver.