unsubscribeStream abstract method

Future<int?> unsubscribeStream({
  1. required String uid,
  2. required MediaStreamType type,
})

Unsubscribes from specific remote media streams captured by camera/microphone.
You can call this API in both automatic subscription mode and manual subscription mode.

uid: ID of the remote user of which you have subscribed to the stream.

type: Media stream type.

See ReturnStatus for return values.

Exceptions during the call are notified through RTCRoomEventHandler.onStreamStateChanged, see ErrorCode for specific reasons.

Implementation

Future<int?> unsubscribeStream({
  required String uid,
  required MediaStreamType type,
});