Agora Java API Reference for Android
|
Public Member Functions | |
AgoraRteVideoCanvas (View view) | |
AgoraRteVideoCanvas (View view, int renderMode) | |
AgoraRteVideoCanvas (View view, int renderMode, int mirrorMode) | |
View | getView () |
int | getRenderMode () |
int | getMirrorMode () |
Public Attributes | |
View | view |
int | renderMode |
int | mirrorMode |
Static Public Attributes | |
static final int | RENDER_MODE_HIDDEN = 1 |
static final int | RENDER_MODE_FIT = 2 |
static final int | RENDER_MODE_ADAPTIVE = 3 |
|
static |
1: Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.
|
static |
2: Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to the disparity in the aspect ratio are filled with black.
|
static |
3: This mode is deprecated and Agora does not recommend using it.
View io.agora.rte.media.video.AgoraRteVideoCanvas.view |
Video display window. Must be SurfaceView or TextureView
int io.agora.rte.media.video.AgoraRteVideoCanvas.renderMode |
The video render mode:
RENDER_MODE_HIDDEN(1)
: Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.RENDER_MODE_FIT(2)
: Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to the disparity in the aspect ratio are filled with black.RENDER_MODE_ADAPTIVE(3)
: This mode is deprecated and Agora does not recommend using it. int io.agora.rte.media.video.AgoraRteVideoCanvas.mirrorMode |
The video mirror mode:
VIDEO_MIRROR_MODE_AUTO(0)
: (Default) The mirror mode determined by the SDK. If you use the front camera, the SDK enables the mirror mode; if you use the rear camera, the SDK disables the mirror mode.VIDEO_MIRROR_MODE_ENABLED(1)
: Enable the mirror mode.VIDEO_MIRROR_MODE_DISABLED(2)
: Disable the mirror mode.