unpublishScreen abstract method
Stops publishing local screen sharing streams in the current room.
type
: Media stream type.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- After calling RTCRoom.publishScreen, call this API to stop publishing streams.
- After calling this API, the other users in the room will receive RTCRoomEventHandler.onUserUnpublishScreen.
Implementation
Future<int?> unpublishScreen(MediaStreamType type);