setScreenVideoEncoderConfig abstract method

Future<int?> setScreenVideoEncoderConfig(
  1. ScreenVideoEncoderConfig screenSolution
)

Video publisher calls this API to set the expected configurations for the screen sharing video stream, including resolution, frame rate, bitrate, scale mode, and fallback strategy in poor network conditions.

screenSolution: The encoding configuration for shared-screen streams.

Notes:

  • We recommend that you set the encoding configuration before video capture. Otherwise, the streams will be captured based on the default configuration(1080p@15fps).
  • On iOS, call this API before publishing screen sharing stream with RTCVideo.startScreenCapture.

Implementation

Future<int?> setScreenVideoEncoderConfig(
    ScreenVideoEncoderConfig screenSolution);