Skip to content

Commit 9a7534f

Browse files
committed
++
1 parent b15d576 commit 9a7534f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/lib/examples/advanced/screen_sharing/screen_sharing.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ class _State extends State<ScreenSharing> with KeepRemoteVideoViewsMixin {
115115
connection:
116116
RtcConnection(channelId: _controller.text, localUid: localUid),
117117
options: const ChannelMediaOptions(
118+
autoSubscribeVideo: true,
119+
autoSubscribeAudio: true,
118120
publishCameraTrack: true,
119121
publishMicrophoneTrack: true,
120122
clientRoleType: ClientRoleType.clientRoleBroadcaster,
@@ -128,8 +130,8 @@ class _State extends State<ScreenSharing> with KeepRemoteVideoViewsMixin {
128130
connection: RtcConnection(
129131
channelId: _controller.text, localUid: shareShareUid),
130132
options: const ChannelMediaOptions(
131-
autoSubscribeVideo: true,
132-
autoSubscribeAudio: true,
133+
autoSubscribeVideo: false,
134+
autoSubscribeAudio: false,
133135
publishScreenTrack: true,
134136
publishSecondaryScreenTrack: true,
135137
publishCameraTrack: false,

0 commit comments

Comments
 (0)