ScreenCaptureParameters2

Parameter configuration for screen sharing.

public class ScreenCaptureParameters2
    {
        public bool captureAudio { set; get; }
        public ScreenAudioParameters audioParams { set; get; }
        public bool captureVideo { set; get; }
        public ScreenVideoParameters videoParams { set; get; }

        public ScreenCaptureParameters2()
        {
            captureAudio = false;
            audioParams = new ScreenAudioParameters();
            captureAudio = true;
            videoParams = new ScreenVideoParameters();
        }
    };

Properties

captureAudio
Note:
  • Due to system limitations, capturing system audio is only supported on Android API level 29 and above, i.e., Android 10 and above.
  • To improve the success rate of capturing system audio during screen sharing, make sure you have called the SetAudioScenario method and set the audio scenario to AUDIO_SCENARIO_GAME_STREAMING.
Whether to capture system audio during screen sharing:
  • true: Capture system audio.
  • false: (Default) Do not capture system audio.
audioParams
Audio configuration for the shared screen stream. See ScreenAudioParameters.
Note: This parameter takes effect only when captureAudio is set to true.
captureVideo
Note: Due to system limitations, screen capture is only supported on Android API level 21 and above, i.e., Android 5 and above.
Whether to capture the screen during screen sharing:
  • true: (Default) Capture the screen.
  • false: Do not capture the screen.
videoParams
Video encoding configuration for the shared screen stream. See ScreenVideoParameters.
Note: This parameter takes effect only when captureVideo is set to true.