diff --git a/example/lib/examples/advanced/screen_sharing/screen_sharing.dart b/example/lib/examples/advanced/screen_sharing/screen_sharing.dart index bed2a98f4..c2f635cee 100644 --- a/example/lib/examples/advanced/screen_sharing/screen_sharing.dart +++ b/example/lib/examples/advanced/screen_sharing/screen_sharing.dart @@ -101,6 +101,8 @@ class _State extends State with KeepRemoteVideoViewsMixin { await _engine.enableVideo(); await _engine.setClientRole(role: ClientRoleType.clientRoleBroadcaster); + await _engine + .setScreenCaptureScenario(ScreenScenarioType.screenScenarioGaming); setState(() { _isReadyPreview = true;