Not documented.
- Annotations
- DomName('RTCPeerConnection')
- SupportedBrowser(SupportedBrowser.CHROME)
- Experimental()
- Extends
- Object
- EventTarget
- RtcPeerConnection
Constants
-
EventStreamProvider<MediaStreamEvent>
addStreamEvent
=
const EventStreamProvider<MediaStreamEvent>
('addstream') -
constStatic factory designed to expose
addstream
events to event handlers that are not necessarily instances of RtcPeerConnection. -
EventStreamProvider<RtcDataChannelEvent>
dataChannelEvent
=
const EventStreamProvider<RtcDataChannelEvent>
('datachannel') -
constStatic factory designed to expose
datachannel
events to event handlers that are not necessarily instances of RtcPeerConnection. -
EventStreamProvider<RtcIceCandidateEvent>
iceCandidateEvent
=
const EventStreamProvider<RtcIceCandidateEvent>
('icecandidate') -
constStatic factory designed to expose
icecandidate
events to event handlers that are not necessarily instances of RtcPeerConnection. -
EventStreamProvider<Event>
iceConnectionStateChangeEvent
=
const EventStreamProvider<Event>
('iceconnectionstatechange') -
constStatic factory designed to expose
iceconnectionstatechange
events to event handlers that are not necessarily instances of RtcPeerConnection. -
EventStreamProvider<Event>
negotiationNeededEvent
=
const EventStreamProvider<Event>
('negotiationneeded') -
constStatic factory designed to expose
negotiationneeded
events to event handlers that are not necessarily instances of RtcPeerConnection. -
EventStreamProvider<MediaStreamEvent>
removeStreamEvent
=
const EventStreamProvider<MediaStreamEvent>
('removestream') -
constStatic factory designed to expose
removestream
events to event handlers that are not necessarily instances of RtcPeerConnection. -
EventStreamProvider<Event>
signalingStateChangeEvent
=
const EventStreamProvider<Event>
('signalingstatechange') -
constStatic factory designed to expose
signalingstatechange
events to event handlers that are not necessarily instances of RtcPeerConnection.
Static Properties
- bool supported
-
read-onlyChecks if Real Time Communication (RTC) APIs are supported and enabled on the current platform.
Properties
- String iceConnectionState
-
read-only
- String iceGatheringState
-
read-only
- RtcSessionDescription localDescription
-
read-only
- Events on
-
read-only, inheritedThis is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- Stream<MediaStreamEvent> onAddStream
-
read-onlyStream of
addstream
events handled by thisRtcPeerConnection
. - Stream<RtcDataChannelEvent> onDataChannel
-
read-onlyStream of
datachannel
events handled by thisRtcPeerConnection
. - Stream<RtcIceCandidateEvent> onIceCandidate
-
read-onlyStream of
icecandidate
events handled by thisRtcPeerConnection
. - Stream<Event> onIceConnectionStateChange
-
read-onlyStream of
iceconnectionstatechange
events handled by thisRtcPeerConnection
. - Stream<Event> onNegotiationNeeded
-
read-onlyStream of
negotiationneeded
events handled by thisRtcPeerConnection
. - Stream<MediaStreamEvent> onRemoveStream
-
read-onlyStream of
removestream
events handled by thisRtcPeerConnection
. - Stream<Event> onSignalingStateChange
-
read-onlyStream of
signalingstatechange
events handled by thisRtcPeerConnection
. - RtcSessionDescription remoteDescription
-
read-only
- String signalingState
-
read-only
Constructors
- RtcPeerConnection(Map rtcConfiguration, [Map mediaConstraints])
Methods
-
addEventListener(
String type, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
addIceCandidate(
RtcIceCandidate candidate, void successCallback(), void 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 -
removeEventListener(
String type, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
removeStream(
MediaStream stream) → void -
setLocalDescription(
RtcSessionDescription description) → Future -
setRemoteDescription(
RtcSessionDescription description) → Future -
updateIce(
[Map configuration, Map mediaConstraints]) → void