Skip to content

Commit 4d16195

Browse files
committed
fix: refine demo with send multi video stream
1 parent 5fa454d commit 4d16195

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

example/lib/examples/advanced/send_multi_video_stream/send_multi_video_stream.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ class _State extends State<SendMultiVideoStream> {
152152
),
153153
);
154154

155+
// you should use one of the following methods to mute remote audio stream
156+
// await _engine.muteRemoteAudioStream(uid: 456, mute: true);
157+
await _engine.setSubscribeAudioBlocklistEx(
158+
uidList: [456],
159+
uidNumber: 1,
160+
connection:
161+
RtcConnection(channelId: _channelIdController.text, localUid: 123));
162+
155163
await _engine.joinChannelEx(
156164
token: '',
157165
connection: RtcConnection(
@@ -163,6 +171,8 @@ class _State extends State<SendMultiVideoStream> {
163171
publishMediaPlayerAudioTrack: true,
164172
publishMediaPlayerVideoTrack: true,
165173
publishMediaPlayerId: _mediaPlayerController.getMediaPlayerId(),
174+
autoSubscribeAudio: false,
175+
autoSubscribeVideo: false,
166176
),
167177
);
168178
}

0 commit comments

Comments
 (0)