public class VideoCanvas
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
mirrorMode
The video mirror mode:
- `VIDEO_MIRROR_MODE_AUTO(0)`: (Default) The mirror mode determined by the SDK.
|
Rect |
rect
Rect info
|
static int |
RENDER_MODE_ADAPTIVE
3: This mode is deprecated and Agora does not recommend using it.
|
static int |
RENDER_MODE_FIT
2: Uniformly scale the video until one of its dimension
fits the boundary (zoomed to fit).
|
static int |
RENDER_MODE_HIDDEN
1: Uniformly scale the video until it fills the visible boundaries (cropped).
|
int |
renderMode
The video render mode:
- `RENDER_MODE_HIDDEN(1)`: Uniformly scale the video until it fills the visible
boundaries (cropped).
|
int |
setupMode
setupMode
|
int |
sourceId
ID of the video source.
|
int |
sourceType
The video source type:
|
int |
uid
ID of the user in the integer format.
|
View |
view
Video display window.
|
static int |
VIEW_SETUP_MODE_ADD |
static int |
VIEW_SETUP_MODE_REMOVE |
static int |
VIEW_SETUP_MODE_REPLACE |
Constructor and Description |
---|
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) |
VideoCanvas(View view,
int renderMode,
int mirrorMode,
int sourceType,
int sourceId,
int uid,
Rect rect,
int setupMode) |
public static final int RENDER_MODE_HIDDEN
public static final int RENDER_MODE_FIT
public static final int RENDER_MODE_ADAPTIVE
public static final int VIEW_SETUP_MODE_REPLACE
public static final int VIEW_SETUP_MODE_ADD
public static final int VIEW_SETUP_MODE_REMOVE
public View view
public int renderMode
public int mirrorMode
public int sourceType
public int sourceId
public int uid
public int setupMode
public Rect rect
public VideoCanvas(View view)
public VideoCanvas(View view, int renderMode)
public VideoCanvas(View view, int renderMode, int uid)
public VideoCanvas(View view, int renderMode, int mirrorMode, int uid)
public VideoCanvas(View view, int renderMode, int mirrorMode, int sourceType, int uid)
public VideoCanvas(View view, int renderMode, int mirrorMode, int sourceType, int sourceId, int uid)
public VideoCanvas(View view, int renderMode, int mirrorMode, int sourceType, int sourceId, int uid, Rect rect, int setupMode)