Agora Java API Reference for Android
|
Public Member Functions | |
VideoCanvas (View view) | |
VideoCanvas (View view, int renderMode) | |
VideoCanvas (View view, int renderMode, int uid) | |
VideoCanvas (View view, int renderMode, int mirrorMode, int uid) | |
VideoCanvas (View view, int renderMode, int mirrorMode, int sourceType, int uid) | |
VideoCanvas (View view, int renderMode, int mirrorMode, int sourceType, int sourceId, int uid) | |
Public Attributes | |
View | view |
int | renderMode |
int | mirrorMode |
int | sourceType |
int | sourceId |
int | uid |
Static Public Attributes | |
static final int | RENDER_MODE_HIDDEN = 1 |
static final int | RENDER_MODE_FIT = 2 |
static final int | RENDER_MODE_ADAPTIVE = 3 |
The VideoCanvas class.
|
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.rtc2.video.VideoCanvas.view |
Video display window. Must be SurfaceView or TextureView
int io.agora.rtc2.video.VideoCanvas.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.rtc2.video.VideoCanvas.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. int io.agora.rtc2.video.VideoCanvas.sourceType |
The video source type:
int io.agora.rtc2.video.VideoCanvas.sourceId |
ID of the video source.
int io.agora.rtc2.video.VideoCanvas.uid |
ID of the user in the integer format.