Package io.agora.rtc2
Class ScreenCaptureParameters.VideoCaptureParameters
java.lang.Object
io.agora.rtc2.ScreenCaptureParameters.VideoCaptureParameters
- Enclosing class:
- ScreenCaptureParameters
- Since:
- v3.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe video encoding bitrate (Kbps).intThe content hint for screen sharing.intThe video encoding frame rate (fps).intThe height (px) of the video encoding resolution.intThe width (px) of the video encoding resolution. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
bitrate
public int bitrateThe video encoding bitrate (Kbps). -
framerate
public int framerateThe video encoding frame rate (fps). The default value is 15. -
width
public int widthThe width (px) of the video encoding resolution. The default value is 1280. If the aspect ratio of width to height is different from that of the screen, the SDK adjusts the video encoding resolution according to the following rules (take width × height of 1280 × 720 as an example): - When the width and height of the screen are both lower than those of dimensions, 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. - When either the width or height of the screen is higher than that of dimensions, the SDK uses the maximum values that do not exceed those of dimensions 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. -
height
public int heightThe height (px) of the video encoding resolution. The default value is 720. If the aspect ratio of width to height is different from that of the screen, the SDK adjusts the video encoding resolution according to the following rules (take width × height of 1280 × 720 as an example): - When the width and height of the screen are both lower than those of dimensions, 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. - When either the width or height of the screen is higher than that of dimensions, the SDK uses the maximum values that do not exceed those of dimensions 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. -
contentHint
public int contentHintThe content hint for screen sharing. - SCREEN_CAPTURE_CONTENT_HINT_NONE (0): (Default) No content hint. - SCREEN_CAPTURE_CONTENT_HINT_MOTION (1): Motion-intensive content. Choose this option if you prefer smoothness or when you are sharing a video clip, movie, or video game. - SCREEN_CAPTURE_CONTENT_HINT_DETAILS (2): Motionless content. Choose this option if you prefer sharpness or when you are sharing a picture, PowerPoint slides, or texts.
-
-
Constructor Details
-
VideoCaptureParameters
public VideoCaptureParameters()
-
-
Method Details