|
Agora RTC Objective-C API Reference
Refactor
|
Data Fields | |
| bool | captureAudio |
| ScreenAudioParameters | audioParams |
| VideoDimensions | dimensions |
| int | frameRate |
| int | bitrate |
| bool | captureMouseCursor |
| bool | windowFocus |
| view_t * | excludeWindowList |
| int | excludeWindowCount |
| int | highLightWidth |
| unsigned int | highLightColor |
| bool | enableHighLight |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool captureAudio |
Determines whether to capture system audio during screen sharing:
true: Capture.false: (Default) Do not capture.| ScreenAudioParameters audioParams |
The audio configuration for the shared screen stream.
captureAudio is true. See ScreenAudioParameters. | VideoDimensions dimensions |
The video encoding resolution of the screen sharing stream. See VideoDimensions. The default value is 1920 × 1080, that is, 2,073,600 pixels. Agora uses the value of this parameter to calculate the charges. If the screen dimensions are different from the value of this parameter, Agora applies the following strategies for encoding. Suppose dimensions is set to 1920 × 1080:
dimensions, for example, 1000 × 1000 pixels, the SDK uses the screen dimensions, that is, 1000 × 1000 pixels, for encoding.dimensions, for example, 2000 × 1500, the SDK uses the maximum value under dimensions with the aspect ratio of the screen dimension (4:3) for encoding, that is, 1440 × 1080. | int frameRate |
On Windows and macOS, this represents the video encoding frame rate (fps) of the screen sharing stream. The frame rate (fps) of the shared region. The default value is 5. Agora does not recommend setting this to a value greater than 15.
| int bitrate |
On Windows and macOS, this represents the video encoding bitrate of the screen sharing stream. The bitrate (Kbps) of the shared region. The default value is 0 (the SDK works out a bitrate according to the dimensions of the current screen).
| bool captureMouseCursor |
Whether to capture the mouse in screen sharing:
true: (Default) Capture the mouse.false: Do not capture the mouse. false is ineffective during screen sharing (it has no impact when sharing a window). | bool windowFocus |
Whether to bring the window to the front when calling the startScreenCaptureByWindowId method to share it:
true: Bring the window to the front.false: (Default) Do not bring the window to the front. | view_t* excludeWindowList |
The ID list of the windows to be blocked. When calling startScreenCaptureByDisplayId to start screen sharing, you can use this parameter to block a specified window. When calling updateScreenCaptureParameters to update screen sharing configurations, you can use this parameter to dynamically block a specified window.
| int excludeWindowCount |
The number of windows to be excluded.
| int highLightWidth |
(For macOS and Windows only) The width (px) of the border. The default value is 5, and the value range is (0, 50].
highLighted is set to true. | unsigned int highLightColor |
(For macOS and Windows only)
COLOR_CLASS refers to NSColor. | bool enableHighLight |
(For macOS and Windows only) Whether to place a border around the shared window or screen:
true: Place a border.false: (Default) Do not place a border. true.