Client class

Constructors

Client(Signal signal, Map<String, dynamic> config)

Properties

config Map<String, dynamic>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initialized bool
getter/setter pair
ondatachannel ↔ (dynamic Function(RTCDataChannel channel)?)
getter/setter pair
onspeaker ↔ (dynamic Function(Map<String, dynamic> speakers)?)
getter/setter pair
ontrack ↔ (dynamic Function(MediaStreamTrack track, RemoteStream stream)?)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signal Signal
getter/setter pair
transports Map<int, Transport>
getter/setter pair

Methods

close() → void
createDataChannel(String label) Future<RTCDataChannel>
getPubStats(MediaStreamTrack selector) Future<List<StatsReport>>
getSubStats(MediaStreamTrack selector) Future<List<StatsReport>>
join(String sid, String uid) Future<void>
negotiate(RTCSessionDescription description) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onnegotiationneeded() Future<void>
publish(LocalStream stream) Future<void>
setPreferredCodec(RTCSessionDescription description) → void
toString() String
A string representation of this object.
inherited
trickle(Trickle trickle) → void

Operators

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

Static Properties

defaultConfig Map<String, Object>
final

Static Methods

create({required String sid, required String uid, required Signal signal, Map<String, dynamic>? config}) Future<Client>