startScreenCaptureByScreenRect abstract method

  1. @Deprecated('Use startScreenCaptureByDisplayId instead.')
Future<void> startScreenCaptureByScreenRect(
  1. Rectangle screenRect, [
  2. Rectangle? regionRect,
  3. ScreenCaptureParameters? captureParams
])

Shares the whole or part of a screen by specifying the screen rect. Deprecated: This method is deprecated as of v3.7.0.Agora strongly recommends using startScreenCaptureByDisplayId if you need to start screen sharing on a device connected to another display. This method shares a screen or part of the screen. You need to specify the area of the screen to be shared. This method applies to the Windows platform only. Call this method after joining a channel.

Param screenRect Sets the relative location of the screen to the virtual screen.

Param regionRect (Optional) Sets the relative location of the region to the screen. If you do not set this parameter, the SDK shares the whole screen. See Rectangle . If the specified region overruns the screen, the SDK shares only the region within it; if you set width or height as 0, the SDK shares the whole screen.

Param captureParams The screen sharing encoding parameters. The default video dimension is 1920 x 1080, that is, 2,073,600 pixels. Agora uses the value of this parameter to calculate the charges. See ScreenCaptureParameters .

Implementation

@Deprecated('Use startScreenCaptureByDisplayId instead.')
Future<void> startScreenCaptureByScreenRect(Rectangle screenRect,
    [Rectangle? regionRect, ScreenCaptureParameters? captureParams]);