setScreenCaptureScenario

Sets the screen sharing scenario.

public abstract int setScreenCaptureScenario(Constants.ScreenScenarioType screenScenario);

Details

When you start screen sharing or window sharing, you can call this method to set the screen sharing scenario. The SDK adjusts the video quality and experience of the sharing according to the scenario.

Note: Agora recommends that you call this method before joining a channel.

Parameters

screenScenario
The screen sharing scenario. See ScreenScenarioType.

Returns

  • 0: Success.
  • < 0: Failure.