setSubscribeVideoBlocklist abstract method
Sets the video subscription blocklist.
You can call this method to specify the video streams you do not want to subscribe to. You can call this method either before or after joining a channel. The video subscription blocklist is not affected by muteRemoteVideoStream, muteAllRemoteVideoStreams, or the autoSubscribeVideo setting in ChannelMediaOptions. After setting the blocklist, it remains effective even if you leave and rejoin the channel. If a user is in both the audio subscription blocklist and allowlist, only the blocklist takes effect.
uidListThe user ID list of the video subscription blocklist. If you want to unsubscribe from the video stream of a specific publishing user, add that user's ID to this list. If you want to remove a user from the blocklist, you need to call the setSubscribeVideoBlocklist method again to update the user ID list of the subscription blocklist so that it no longer contains the uid of the user you want to remove.uidNumberThe number of users in the blocklist.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> setSubscribeVideoBlocklist(
{required List<int> uidList, required int uidNumber});