Agora Java API Reference for Android
Public Member Functions | List of all members
agora::rtc::IVideoFrameObserver2 Class Referenceabstract

Public Member Functions

virtual void onFrame (user_id_t uid, rtc::conn_id_t connectionId, const media::base::VideoFrame *frame)=0
 

Member Function Documentation

◆ onFrame()

virtual void agora::rtc::IVideoFrameObserver2::onFrame ( user_id_t  uid,
rtc::conn_id_t  connectionId,
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
frameThe detailed information of the video frame. See VideoFrame.