Agora Java API Reference for Android
|
Classes | |
enum | FRAME_RATE |
enum | ORIENTATION_MODE |
class | VideoDimensions |
Public Member Functions | |
VideoStreamConfiguration (VideoDimensions dimensions, FRAME_RATE frameRate, int bitrate, ORIENTATION_MODE orientationMode) | |
VideoStreamConfiguration (int width, int height, FRAME_RATE frameRate, int bitrate, ORIENTATION_MODE orientationMode) | |
VideoStreamConfiguration (int width, int height, int frameRate, int bitrate, ORIENTATION_MODE orientationMode) | |
int | getWidth () |
int | getHeight () |
int | getFramerate () |
int | getBitrate () |
int | getOrientationMode () |
String | toString () |
Public Attributes | |
VideoDimensions | dimensions |
int | frameRate |
int | bitrate |
ORIENTATION_MODE | orientationMode |
Configurations for the video stream.
|
static |
VD_120x120: The video resolution is 120 × 120.
|
static |
VD_160x120: The video resolution is 160 × 120.
|
static |
VD_180x180: The video resolution is 180 × 180.
|
static |
VD_240x180: The video resolution is 240 × 180.
|
static |
VD_320x180: The video resolution is 320 × 180.
|
static |
VD_240x240: The video resolution is 240 × 240.
|
static |
VD_320x240: The video resolution is 320 × 240.
|
static |
VD_424x240: The video resolution is 424 × 240.
|
static |
VD_360x360: The video resolution is 360 × 360.
|
static |
VD_480x360: The video resolution is 480 × 360.
|
static |
VD_640x360: The video resolution is 640 × 360.
|
static |
VD_480x480: The video resolution is 480 × 480.
|
static |
VD_640x480: The video resolution is 640 × 480.
|
static |
VD_840x480: The video resolution is 840 × 480.
|
static |
VD_960x720: The video resolution is 640 × 360.
|
static |
VD_1280x720: The video resolution is 640 × 360.
|
static |
Not supported.
|
static |
Not supported.
|
static |
Not supported.
|
static |
0: The standard bitrate mode.
VideoDimensions io.agora.streaming.VideoStreamConfiguration.dimensions |
The video frame dimensions (px), which is used to specify the video quality and measured by the total number of pixels along a frame's width and height. The default value is 640 × 360. Users can either set the resolution manually or choose from the following options:
int io.agora.streaming.VideoStreamConfiguration.frameRate |
The video frame rate (fps). The default value is 15. Users can either set the frame rate manually or choose from the following options. We do not recommend setting this to a value greater than 30.
int io.agora.streaming.VideoStreamConfiguration.bitrate |
The bitrate of the video (Kbps). Refer to the table below and set your bitrate. If you set a bitrate beyond the proper range, the SDK automatically adjusts it to a value within the range. You can also choose from the following options:
Video Bitrate Table
Resolution | Frame rate(fps) | Standard Bitrate (Kbps) |
---|---|---|
160 × 120 | 15 | 130 |
120 × 120 | 15 | 100 |
320 × 180 | 15 | 280 |
180 × 180 | 15 | 200 |
240 × 180 | 15 | 240 |
320 × 240 | 15 | 400 |
240 × 240 | 15 | 280 |
424 × 240 | 15 | 440 |
640 × 360 | 15 | 800 |
360 × 360 | 15 | 520 |
640 × 360 | 30 | 1200 |
360 × 360 | 30 | 800 |
480 × 360 | 15 | 640 |
480 × 360 | 30 | 980 |
640 × 480 | 15 | 1000 |
480 × 480 | 15 | 800 |
640 × 480 | 30 | 1500 |
480 × 480 | 30 | 1200 |
848 × 480 | 15 | 1220 |
848 × 480 | 30 | 1860 |
640 × 480 | 10 | 800 |
1280 × 720 | 15 | 2260 |
1280 × 720 | 30 | 3420 |
960 × 720 | 15 | 1820 |
960 × 720 | 30 | 2760 |
ORIENTATION_MODE io.agora.streaming.VideoStreamConfiguration.orientationMode |
The orientation mode. See ORIENTATION_MODE.