unsubscribeScreen abstract method

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

Unsubscribes from specific screen sharing media stream.
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.

Return value:

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

Implementation

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