unsubscribeAllStreams abstract method
Unsubscribes from all remote media streams captured by camera/microphone.
You can call this API to unsubscribe from streams that are subscribed to either automatically or manually.
type
: Media stream type, used for specifying whether to unsubscribe from the audio stream or the video stream.
Notes:
- After calling this API, you will be informed of the calling result with
RTCRoomEventHandler.onStreamSubscribed
. - Any other exceptions will be included in RTCRoomEventHandler.onStreamStateChanged, see ErrorCode for the reasons.
Implementation
Future<int?> unsubscribeAllStreams(MediaStreamType type);