diff --git a/example/lib/examples/advanced/send_multi_video_stream/send_multi_video_stream.dart b/example/lib/examples/advanced/send_multi_video_stream/send_multi_video_stream.dart index 9ffa87600..5af2ee67b 100644 --- a/example/lib/examples/advanced/send_multi_video_stream/send_multi_video_stream.dart +++ b/example/lib/examples/advanced/send_multi_video_stream/send_multi_video_stream.dart @@ -152,6 +152,14 @@ class _State extends State { ), ); + // you should use one of the following methods to mute remote audio stream + // await _engine.muteRemoteAudioStream(uid: 456, mute: true); + await _engine.setSubscribeAudioBlocklistEx( + uidList: [456], + uidNumber: 1, + connection: + RtcConnection(channelId: _channelIdController.text, localUid: 123)); + await _engine.joinChannelEx( token: '', connection: RtcConnection( @@ -163,6 +171,8 @@ class _State extends State { publishMediaPlayerAudioTrack: true, publishMediaPlayerVideoTrack: true, publishMediaPlayerId: _mediaPlayerController.getMediaPlayerId(), + autoSubscribeAudio: false, + autoSubscribeVideo: false, ), ); }