Agora Java API Reference for Android
|
#include <AgoraMediaBase.h>
Public Types | |
enum | VIDEO_FRAME_PROCESS_MODE { PROCESS_MODE_READ_ONLY, PROCESS_MODE_READ_WRITE } |
typedef media::base::VideoFrame | VideoFrame |
Public Member Functions | |
virtual bool | onCaptureVideoFrame (VideoFrame &videoFrame)=0 |
virtual bool | onSecondaryCameraCaptureVideoFrame (VideoFrame &videoFrame)=0 |
virtual bool | onScreenCaptureVideoFrame (VideoFrame &videoFrame)=0 |
virtual bool | onMediaPlayerVideoFrame (VideoFrame &videoFrame, int mediaPlayerId)=0 |
virtual bool | onSecondaryScreenCaptureVideoFrame (VideoFrame &videoFrame)=0 |
virtual bool | onRenderVideoFrame (rtc::uid_t uid, rtc::conn_id_t connectionId, VideoFrame &videoFrame)=0 |
virtual bool | onTranscodedVideoFrame (VideoFrame &videoFrame)=0 |
virtual VIDEO_FRAME_PROCESS_MODE | getVideoFrameProcessMode () |
virtual base::VIDEO_PIXEL_FORMAT | getVideoPixelFormatPreference () |
virtual int | getRotationApplied () |
virtual bool | getMirrorApplied () |
virtual bool | isExternal () |
The IVideoFrameObserver class.
|
pure virtual |
Occurs each time the SDK receives a video frame captured by the local camera.
After you successfully register the video frame observer, the SDK triggers this callback each time a video frame is received. In this callback, you can get the video data captured by the local camera. You can then pre-process the data according to your scenarios.
After pre-processing, you can send the processed video data back to the SDK by setting the videoFrame
parameter in this callback.
videoFrame | A pointer to the video frame: VideoFrame |
Implemented in agora::media::IVideoFrameObserverEx.
|
pure virtual |
Occurs each time the SDK receives a video frame captured by the screen.
After you successfully register the video frame observer, the SDK triggers this callback each time a video frame is received. In this callback, you can get the video data captured by the screen. You can then pre-process the data according to your scenarios.
After pre-processing, you can send the processed video data back to the SDK by setting the videoFrame
parameter in this callback.
videoFrame | A pointer to the video frame: VideoFrame |
Implemented in agora::media::IVideoFrameObserverEx.
|
pure virtual |
Occurs each time the SDK receives a video frame decoded by the MediaPlayer.
After you successfully register the video frame observer, the SDK triggers this callback each time a video frame is decoded. In this callback, you can get the video data decoded by the MediaPlayer. You can then pre-process the data according to your scenarios.
After pre-processing, you can send the processed video data back to the SDK by setting the videoFrame
parameter in this callback.
videoFrame | A pointer to the video frame: VideoFrame |
mediaPlayerId | of the mediaPlayer. |
Implemented in agora::media::IVideoFrameObserverEx.
|
pure virtual |
Occurs each time the SDK receives a video frame sent by the remote user.
After you successfully register the video frame observer, the SDK triggers this callback each time a video frame is received. In this callback, you can get the video data sent by the remote user. You can then post-process the data according to your scenarios.
After post-processing, you can send the processed data back to the SDK by setting the videoFrame
parameter in this callback.
uid | ID of the remote user who sends the current video frame. |
connectionId | ID of the connection. |
videoFrame | A pointer to the video frame: VideoFrame |
Implemented in agora::media::IVideoFrameObserverEx.
|
virtual |
Indicate the video frame mode of the observer.
|
virtual |
Occurs each time needs to get rotation angle.
|
virtual |
Occurs each time needs to get whether mirror is applied or not.
|
virtual |
Indicate if the observer is for internal use. Note: Never override this function
Reimplemented in agora::media::IVideoFrameObserverEx.