Agora Java API Reference for Android
|
Inherits Serializable.
Public Member Functions | |
boolean | equals (Object o) |
int | hashCode () |
String | toString () |
Public Attributes | |
int | bitrate |
int | framerate = 15 |
int | width = 1280 |
int | height = 720 |
int | contentHint = Constants.SCREEN_CAPTURE_CONTENT_HINT_MOTION |
The video configuration for the shared screen stream.
Only available for scenarios where captureVideo
is true
.
int io.agora.rtc.ScreenCaptureParameters.VideoCaptureParameters.bitrate |
The video encoding bitrate (Kbps). For recommended values, see Recommended video profiles.
int io.agora.rtc.ScreenCaptureParameters.VideoCaptureParameters.framerate = 15 |
The video encoding frame rate (fps). The default value is 15
. For recommended values, see Recommended video profiles.
int io.agora.rtc.ScreenCaptureParameters.VideoCaptureParameters.width = 1280 |
The width of the video encoding resolution. The default value is 1280
. For recommended values, see Recommended video profiles. If the aspect ratio is different between width and height and the screen, the SDK adjusts the video encoding resolution according to the following rules (using an example where width
× height
is 1280 × 720):
width
and height
, the SDK uses the resolution of the screen for video encoding. For example, if the screen is 640 × 360, The SDK uses 640 × 360 for video encoding.width
or height
, the SDK uses the maximum values that do not exceed those of width
and height
while maintaining the aspect ratio of the screen for video encoding. For example, if the screen is 2000 × 1500, the SDK uses 960 × 720 for video encoding.ORIENTATION_MODE
.int io.agora.rtc.ScreenCaptureParameters.VideoCaptureParameters.height = 720 |
The height of the video encoding resolution. The default value is 720. For recommended values, see Recommended video profiles. If the aspect ratio is different between width
and height
and the screen, the SDK adjusts the video encoding resolution according to the following rules (using an example where width
× height
is 1280 × 720):
width
and height
, the SDK uses the resolution of the screen for video encoding. For example, if the screen is 640 × 360, The SDK uses 640 × 360 for video encoding.width
or height
, the SDK uses the maximum values that do not exceed those of width
and height
while maintaining the aspect ratio of the screen for video encoding. For example, if the screen is 2000 × 1500, the SDK uses 960 × 720 for video encoding.ORIENTATION_MODE
.int io.agora.rtc.ScreenCaptureParameters.VideoCaptureParameters.contentHint = Constants.SCREEN_CAPTURE_CONTENT_HINT_MOTION |
The content hint of the screen sharing: