Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | List of all members
agora::rtc::IMediaPlayerVideoFrameObserverEx Class Referenceabstract

`#include <media_player_source_i.h>`

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 every time the player receives a video frame, reporting the detailed information of the video frame.

Parameters

  frame | The video frame information. 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.