unpublishStream abstract method
Stops publishing media streams captured by camera/microphone in the current room.
type
: Media stream type.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- After calling RTCRoom.publishStream, call this API to stop publishing streams。
- After calling this API, the other users in the room will receive RTCRoomEventHandler.onUserUnpublishStream.
Implementation
Future<int?> unpublishStream(MediaStreamType type);