PeerConnection class abstract

Represents a generic WebRTC peer connection

Implementers

Constructors

PeerConnection()

Properties

hashCode → int
The hash code for this object.
no setterinherited
onConnectionState → Stream<PeerConnectionState>
Connection state stream
no setter
onDataChannel → Stream<DataChannel>
Data channel stream (incoming)
no setter
onIceCandidate → Stream<IceCandidate>
ICE candidate stream
no setter
onTrack → Stream<MediaStream>
Remote media stream stream
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addIceCandidate(IceCandidate candidate) → Future<void>
Add ICE candidate
addStream(MediaStream stream) → Future<void>
Add local media stream
close() → Future<void>
Close connection
createAnswer() → Future<SessionDescription>
Create an SDP answer
createOffer() → Future<SessionDescription>
Create an SDP offer
getSignalingState() → Future<SignalingState>
Get current signaling state
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLocalDescription(SessionDescription description) → Future<void>
Set local SDP
setRemoteDescription(SessionDescription description) → Future<void>
Set remote SDP
toString() → String
A string representation of this object.
inherited

Operators

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