Agora Java API Reference for Android

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

`#include <AgoraMediaBase.h>`

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

## Detailed Description

The IVideoFrameObserver class.

## 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.