unsubscribeScreen abstract method
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:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Exceptions during the call are notified through RTCRoomEventHandler.onStreamStateChanged, see ErrorCode for specific reasons.
Implementation
Future<int?> unsubscribeScreen({
required String uid,
required MediaStreamType type,
});