Suggestions

close search

StringeeRoom class

Represents a room. Used to manager room, room's events.


Summary


Properties

id → String

recorded → bool

eventStreamController → StreamController<dynamic>

Events  

didJoinRoom

Invoked when new user join room.

didLeaveRoom

Invoked when user leave room.

didAddVideoTrack

Invoked when add video track to room.

didRemoveVideoTrack

Invoked when remove video track from room.

didReceiveRoomMessage

Invoked when get message in room.

Methods

publish(StringeeVideoTrack videoTrack) → result

Publish video track to room.

unPublish(StringeeVideoTrack videoTrack) → result

Unpublish video track from room.

subscribe(StringeeVideoTrack videoTrack, StringeeVideoTrackOptions options) → result

Subcribe video track in room.

unsubscribe(StringeeVideoTrack videoTrack) → result

Unsubcribe video track in room.

leave({required bool allClient}) → result

Leave room.

sendMessage(Map<dynamic, dynamic> msg) → result

Sends any message to room.

destroy() → void

Close event stream.

Properties


id → String
It's the unique identification of the room on Stringee system.
recorded → bool
Whether the room is recorded:
- true - is recorded.
- false - is not recorded.
eventStreamController → StreamController<dynamic>
It's controller of event stream which was sended from plugin.

Events


didJoinRoom
Invoked when new user join room.
Receive StringeeRoomUser from event['body'].
didLeaveRoom
Invoked when new user leave room.
Receive StringeeRoomUser from event['body'].
didAddVideoTrack
Invoked when add video track to call.
Receive StringeeVideoTrack from event['body'].
didRemoveVideoTrack
Invoked when remove video track from call.
Receive StringeeVideoTrack from event['body'].
didReceiveRoomMessage
Invoked when get message in room.
Receive from event['body']:
- msg: Message.
- from: StringeeRoomUser;.

Methods


publish(StringeeVideoTrack videoTrack) → result
Publish video track to room.
unPublish(StringeeVideoTrack videoTrack) → result
Unpublish video track from room..
subscribe(StringeeVideoTrack videoTrack, StringeeVideoTrackOptions options) → result
Subcribe video track in room.
unsubscribe(StringeeVideoTrack videoTrack) → result
Unsubcribe video track in room.
leave({required bool allClient}) → result
Leave room.
sendMessage(Map<dynamic, dynamic> msg) → result
Sends any message to room.
destroy() → void
Close event stream.