Public Member Functions | |
VideoCanvas (View view) | |
VideoCanvas (View view, int renderMode, int uid) | |
VideoCanvas (View view, int renderMode, String channelId, int uid) | |
VideoCanvas (View view, int renderMode, int uid, int mirrorMode) | |
VideoCanvas (View view, int renderMode, String channelId, int uid, int mirrorMode) | |
Public Attributes | |
View | view |
int | renderMode |
String | channelId |
int | mirrorMode |
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 |
static final int | RENDER_MODE_FILL = 4 |
Properties of the video display window.
|
static |
1: Uniformly scale the video until it fills the visible boundaries. One dimension of the video may have clipped contents.
|
static |
2: Uniformly scale the video until one of its dimension fits the boundary. Areas that are not filled due to the disparity in the aspect ratio are filled with black.
|
static |
|
static |
4: The fill mode. In this mode, the SDK stretches or zooms the video to fill the display window.
View io.agora.rtc.video.VideoCanvas.view |
Video display window. Must be ViEAndroidGLES20 or ViETextureView created by RtcEngine(CreateRendererView or CreateTextureView)
int io.agora.rtc.video.VideoCanvas.renderMode |
The rendering mode of the video view:
String io.agora.rtc.video.VideoCanvas.channelId |
The unique channel name for the AgoraRTC session in the string format. The string length must be less than 64 bytes. Supported character scopes are:
int io.agora.rtc.video.VideoCanvas.mirrorMode |
The video mirror mode:
int io.agora.rtc.video.VideoCanvas.uid |
User ID.