We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b15d576 commit 9a7534fCopy full SHA for 9a7534f
example/lib/examples/advanced/screen_sharing/screen_sharing.dart
@@ -115,6 +115,8 @@ class _State extends State<ScreenSharing> with KeepRemoteVideoViewsMixin {
115
connection:
116
RtcConnection(channelId: _controller.text, localUid: localUid),
117
options: const ChannelMediaOptions(
118
+ autoSubscribeVideo: true,
119
+ autoSubscribeAudio: true,
120
publishCameraTrack: true,
121
publishMicrophoneTrack: true,
122
clientRoleType: ClientRoleType.clientRoleBroadcaster,
@@ -128,8 +130,8 @@ class _State extends State<ScreenSharing> with KeepRemoteVideoViewsMixin {
128
130
connection: RtcConnection(
129
131
channelId: _controller.text, localUid: shareShareUid),
132
- autoSubscribeVideo: true,
- autoSubscribeAudio: true,
133
+ autoSubscribeVideo: false,
134
+ autoSubscribeAudio: false,
135
publishScreenTrack: true,
136
publishSecondaryScreenTrack: true,
137
publishCameraTrack: false,
0 commit comments