Skip to content

Commit

Permalink
[example][screen_sharing] Set ScreenScenarioType.screenScenarioGamin…
Browse files Browse the repository at this point in the history
…g to enable zero-copy feature
  • Loading branch information
littleGnAl committed Sep 13, 2024
1 parent d8c8b45 commit 73378b9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class _State extends State<ScreenSharing> with KeepRemoteVideoViewsMixin {

await _engine.enableVideo();
await _engine.setClientRole(role: ClientRoleType.clientRoleBroadcaster);
await _engine
.setScreenCaptureScenario(ScreenScenarioType.screenScenarioGaming);

setState(() {
_isReadyPreview = true;
Expand Down

0 comments on commit 73378b9

Please sign in to comment.