On this page
RtcPeerConnection class
- Inheritance
-
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- RtcPeerConnection
- Annotations
-
- @DomName('RTCPeerConnection')
- @SupportedBrowser(SupportedBrowser.CHROME)
- @Experimental()
Constants
- addStreamEvent → EventStreamProvider<MediaStreamEvent>
@DocsEditable(), @DomName('RTCPeerConnection.addstreamEvent')
-
Static factory designed to expose
addstreamevents to event handlers that are not necessarily instances of RtcPeerConnection.const EventStreamProvider<MediaStreamEvent>('addstream') - dataChannelEvent → EventStreamProvider<RtcDataChannelEvent>
@DocsEditable(), @DomName('RTCPeerConnection.datachannelEvent')
-
Static factory designed to expose
datachannelevents to event handlers that are not necessarily instances of RtcPeerConnection.const EventStreamProvider<RtcDataChannelEvent>('datachannel') - iceCandidateEvent → EventStreamProvider<RtcIceCandidateEvent>
@DocsEditable(), @DomName('RTCPeerConnection.icecandidateEvent')
-
Static factory designed to expose
icecandidateevents to event handlers that are not necessarily instances of RtcPeerConnection.const EventStreamProvider<RtcIceCandidateEvent>('icecandidate… - iceConnectionStateChangeEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('RTCPeerConnection.iceconnectionstatechangeEvent')
-
Static factory designed to expose
iceconnectionstatechangeevents to event handlers that are not necessarily instances of RtcPeerConnection.const EventStreamProvider<Event>('iceconnectionstatechange') - negotiationNeededEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('RTCPeerConnection.negotiationneededEvent')
-
Static factory designed to expose
negotiationneededevents to event handlers that are not necessarily instances of RtcPeerConnection.const EventStreamProvider<Event>('negotiationneeded') - removeStreamEvent → EventStreamProvider<MediaStreamEvent>
@DocsEditable(), @DomName('RTCPeerConnection.removestreamEvent')
-
Static factory designed to expose
removestreamevents to event handlers that are not necessarily instances of RtcPeerConnection.const EventStreamProvider<MediaStreamEvent>('removestream') - signalingStateChangeEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('RTCPeerConnection.signalingstatechangeEvent')
-
Static factory designed to expose
signalingstatechangeevents to event handlers that are not necessarily instances of RtcPeerConnection.const EventStreamProvider<Event>('signalingstatechange')
Static Properties
- instanceRuntimeType → Type
@Deprecated("Internal Use Only"), read-only
- supported → bool
read-only
-
Checks if Real Time Communication (RTC) APIs are supported and enabled on the current platform.
Static Methods
- generateCertificate(
keygenAlgorithm) → Future @DocsEditable(), @DomName('RTCPeerConnection.generateCertificate'), @Experimental()
Constructors
- RtcPeerConnection(Map rtcConfiguration, [ Map mediaConstraints ])
factory
- RtcPeerConnection.internal_()
Properties
- iceConnectionState → String
@DocsEditable(), @DomName('RTCPeerConnection.iceConnectionState'), read-only
- iceGatheringState → String
@DocsEditable(), @DomName('RTCPeerConnection.iceGatheringState'), read-only
- localDescription → RtcSessionDescription
@DocsEditable(), @DomName('RTCPeerConnection.localDescription'), read-only
- onAddStream → Stream<MediaStreamEvent>
@DocsEditable(), @DomName('RTCPeerConnection.onaddstream'), read-only
-
Stream of
addstreamevents handled by thisRtcPeerConnection. - onDataChannel → Stream<RtcDataChannelEvent>
@DocsEditable(), @DomName('RTCPeerConnection.ondatachannel'), read-only
-
Stream of
datachannelevents handled by thisRtcPeerConnection. - onIceCandidate → Stream<RtcIceCandidateEvent>
@DocsEditable(), @DomName('RTCPeerConnection.onicecandidate'), read-only
-
Stream of
icecandidateevents handled by thisRtcPeerConnection. - onIceConnectionStateChange → Stream<Event>
@DocsEditable(), @DomName('RTCPeerConnection.oniceconnectionstatechange'), read-only
-
Stream of
iceconnectionstatechangeevents handled by thisRtcPeerConnection. - onNegotiationNeeded → Stream<Event>
@DocsEditable(), @DomName('RTCPeerConnection.onnegotiationneeded'), read-only
-
Stream of
negotiationneededevents handled by thisRtcPeerConnection. - onRemoveStream → Stream<MediaStreamEvent>
@DocsEditable(), @DomName('RTCPeerConnection.onremovestream'), read-only
-
Stream of
removestreamevents handled by thisRtcPeerConnection. - onSignalingStateChange → Stream<Event>
@DocsEditable(), @DomName('RTCPeerConnection.onsignalingstatechange'), read-only
-
Stream of
signalingstatechangeevents handled by thisRtcPeerConnection. - remoteDescription → RtcSessionDescription
@DocsEditable(), @DomName('RTCPeerConnection.remoteDescription'), read-only
- signalingState → String
@DocsEditable(), @DomName('RTCPeerConnection.signalingState'), read-only
- hashCode → int
read-only, inherited
- on → Events
read-only, inherited
-
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- runtimeType → Type
read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- addIceCandidate(
candidate, [ VoidCallback successCallback, RtcPeerConnectionErrorCallback failureCallback ]) → Future - addStream(
MediaStream stream, [ Map mediaConstraints ]) → void - close(
) → void @DocsEditable(), @DomName('RTCPeerConnection.close') - createAnswer(
[Map mediaConstraints ]) → Future<RtcSessionDescription> - createDataChannel(
String label, [ Map options ]) → RtcDataChannel - createDtmfSender(
MediaStreamTrack track) → RtcDtmfSender @DocsEditable(), @DomName('RTCPeerConnection.createDTMFSender') - createOffer(
[Map mediaConstraints ]) → Future<RtcSessionDescription> - getLocalStreams(
) → List<MediaStream> @DocsEditable(), @DomName('RTCPeerConnection.getLocalStreams') - getRemoteStreams(
) → List<MediaStream> @DocsEditable(), @DomName('RTCPeerConnection.getRemoteStreams') - getStats(
MediaStreamTrack selector) → Future<RtcStatsResponse> @DomName('RTCPeerConnection.getStats') - getStreamById(
String streamId) → MediaStream @DocsEditable(), @DomName('RTCPeerConnection.getStreamById') - removeStream(
MediaStream stream) → void @DocsEditable(), @DomName('RTCPeerConnection.removeStream') - setLocalDescription(
RtcSessionDescription description) → Future - setRemoteDescription(
RtcSessionDescription description) → Future - updateIce(
[Map configuration, Map mediaConstraints ]) → void - addEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - dispatchEvent(
Event event) → bool @DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited - noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - toString(
) → String inherited -
Returns the result of the JavaScript objects
toStringmethod.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/RtcPeerConnection-class.html