- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- RtcPeerConnection
- Annotations
- DomName('RTCPeerConnection')
- SupportedBrowser(SupportedBrowser.CHROME)
- Experimental()
Constants
- addStreamEvent → EventStreamProvider<MediaStreamEvent>
-
Static factory designed to expose
addstream
events to event handlers that are not necessarily instances of RtcPeerConnection.…const EventStreamProvider<MediaStreamEvent>
('addstream') - dataChannelEvent → EventStreamProvider<RtcDataChannelEvent>
-
Static factory designed to expose
datachannel
events to event handlers that are not necessarily instances of RtcPeerConnection.…const EventStreamProvider<RtcDataChannelEvent>
('datachannel') - iceCandidateEvent → EventStreamProvider<RtcIceCandidateEvent>
-
Static factory designed to expose
icecandidate
events to event handlers that are not necessarily instances of RtcPeerConnection.…const EventStreamProvider<RtcIceCandidateEvent>
('icecandidate') - iceConnectionStateChangeEvent → EventStreamProvider<Event>
-
Static factory designed to expose
iceconnectionstatechange
events to event handlers that are not necessarily instances of RtcPeerConnection.…const EventStreamProvider<Event>
('iceconnectionstatechange') - negotiationNeededEvent → EventStreamProvider<Event>
-
Static factory designed to expose
negotiationneeded
events to event handlers that are not necessarily instances of RtcPeerConnection.…const EventStreamProvider<Event>
('negotiationneeded') - removeStreamEvent → EventStreamProvider<MediaStreamEvent>
-
Static factory designed to expose
removestream
events to event handlers that are not necessarily instances of RtcPeerConnection.…const EventStreamProvider<MediaStreamEvent>
('removestream') - signalingStateChangeEvent → EventStreamProvider<Event>
-
Static factory designed to expose
signalingstatechange
events to event handlers that are not necessarily instances of RtcPeerConnection.…const EventStreamProvider<Event>
('signalingstatechange')
Static Properties
- instanceRuntimeType → Type
-
read-only
- supported → bool
-
Checks if Real Time Communication (RTC) APIs are supported and enabled on the current platform.
read-only
Constructors
- RtcPeerConnection(Map rtcConfiguration, [Map mediaConstraints])
-
factory
- RtcPeerConnection.internal_()
Properties
- hashCode → int
-
read-only, inherited
- iceConnectionState → String
-
read-only
- iceGatheringState → String
-
read-only
- localDescription → RtcSessionDescription
-
read-only
- on → Events
-
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
read-only, inherited - onAddStream → Stream<MediaStreamEvent>
-
Stream of
addstream
events handled by thisRtcPeerConnection
.read-only - onDataChannel → Stream<RtcDataChannelEvent>
-
Stream of
datachannel
events handled by thisRtcPeerConnection
.read-only - onIceCandidate → Stream<RtcIceCandidateEvent>
-
Stream of
icecandidate
events handled by thisRtcPeerConnection
.read-only - onIceConnectionStateChange → Stream<Event>
-
Stream of
iceconnectionstatechange
events handled by thisRtcPeerConnection
.read-only - onNegotiationNeeded → Stream<Event>
-
Stream of
negotiationneeded
events handled by thisRtcPeerConnection
.read-only - onRemoveStream → Stream<MediaStreamEvent>
-
Stream of
removestream
events handled by thisRtcPeerConnection
.read-only - onSignalingStateChange → Stream<Event>
-
Stream of
signalingstatechange
events handled by thisRtcPeerConnection
.read-only - remoteDescription → RtcSessionDescription
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - signalingState → String
-
read-only
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
addEventListener(
String type, EventListener listener(Event event), [bool useCapture]) → void -
inherited
-
addIceCandidate(
RtcIceCandidate candidate, VoidCallback successCallback(), _RtcErrorCallback failureCallback(String errorInformation)) → void -
addStream(
MediaStream stream, [Map mediaConstraints]) → void -
close(
) → void -
createAnswer(
[Map mediaConstraints]) → Future<RtcSessionDescription> -
createDataChannel(
String label, [Map options]) → RtcDataChannel -
createDtmfSender(
MediaStreamTrack track) → RtcDtmfSender -
createOffer(
[Map mediaConstraints]) → Future<RtcSessionDescription> -
dispatchEvent(
Event event) → bool -
inherited
-
getLocalStreams(
) → List<MediaStream> -
getRemoteStreams(
) → List<MediaStream> -
getStats(
MediaStreamTrack selector) → Future<RtcStatsResponse> -
getStreamById(
String streamId) → MediaStream -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
removeEventListener(
String type, EventListener listener(Event event), [bool useCapture]) → void -
inherited
-
removeStream(
MediaStream stream) → void -
setLocalDescription(
RtcSessionDescription description) → Future -
setRemoteDescription(
RtcSessionDescription description) → Future -
toString(
) → String -
Returns the result of the JavaScript objects
toString
method.inherited -
updateIce(
[Map configuration, Map mediaConstraints]) → void