Session class

Constructors

Session(String id, String token)

Properties

hashCode int
The hash code for this object.
no setterinherited
iceServers List<Map<String, dynamic>>
getter/setter pair
iceServersDefault List<Map<String, List<String>>>
final
id String
getter/setter pair
localParticipant LocalParticipant?
getter/setter pair
localRenderer ↔ RTCVideoRenderer
getter/setter pair
messages List<Message>
getter/setter pair
messageStream Stream<Message>
no setter
onAddRemoteParticipant OnAddRemoteParticipantEvent?
getter/setter pair
onNotifySetRemoteMediaStream OnNotifySetRemoteMediaStreamEvent?
getter/setter pair
onRemoveRemoteParticipant OnRemoveRemoteParticipantEvent?
getter/setter pair
remoteParticipants Map<String, RemoteParticipant>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
getter/setter pair
unreadMessages int
no setter
websocket CustomWebSocket
getter/setter pair

Methods

addMessageReceived(Map<String, dynamic> params) → void
addRemoteParticipant(RemoteParticipant remoteParticipant) → void
Adds a remote participant
createAnswerForSubscribing(RemoteParticipant remoteParticipant, String streamId, Map<String, dynamic> constraints) Future<void>
Creates an answer for subscribing
createLocalPeerConnection() Future<RTCPeerConnection>
Creates a local peer connection
createOfferForPublishing(Map<String, dynamic> constraints) Future<void>
Creates an offer for publishing
createRemotePeerConnection(String connectionId) Future<void>
Creates a remote peer connection
leaveSession() → void
Leaves the session
localToggleAudio() → void
Toggles the local audio
localToggleVideo() → void
Toggles the local video
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRemoteParticipant(String id) Future<void>
Removes a remote participant
setIceServers(List<Map<String, dynamic>> iceServers) → void
Sets the ICE servers
setWebSocket(CustomWebSocket websocket) → void
Sets the WebSocket object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited