Not documented.
- Inheritance
- Object
- EventTarget
- RtcPeerConnection
- Annotations
- DomName('RTCPeerConnection')
- SupportedBrowser(SupportedBrowser.CHROME)
- Experimental()
Constants
-
EventStreamProvider<MediaStreamEvent>
addStreamEvent
= const EventStreamProvider<MediaStreamEvent>
('addstream') -
const
Static factory designed to expose
addstream
events to event handlers that are not necessarily instances of RtcPeerConnection.… -
EventStreamProvider<RtcDataChannelEvent>
dataChannelEvent
= const EventStreamProvider<RtcDataChannelEvent>
('datachannel') -
const
Static factory designed to expose
datachannel
events to event handlers that are not necessarily instances of RtcPeerConnection.… -
EventStreamProvider<RtcIceCandidateEvent>
iceCandidateEvent
= const EventStreamProvider<RtcIceCandidateEvent>
('icecandidate') -
const
Static factory designed to expose
icecandidate
events to event handlers that are not necessarily instances of RtcPeerConnection.… -
EventStreamProvider<Event>
iceConnectionStateChangeEvent
= const EventStreamProvider<Event>
('iceconnectionstatechange') -
const
Static factory designed to expose
iceconnectionstatechange
events to event handlers that are not necessarily instances of RtcPeerConnection.… -
EventStreamProvider<Event>
negotiationNeededEvent
= const EventStreamProvider<Event>
('negotiationneeded') -
const
Static factory designed to expose
negotiationneeded
events to event handlers that are not necessarily instances of RtcPeerConnection.… -
EventStreamProvider<MediaStreamEvent>
removeStreamEvent
= const EventStreamProvider<MediaStreamEvent>
('removestream') -
const
Static factory designed to expose
removestream
events to event handlers that are not necessarily instances of RtcPeerConnection.… -
EventStreamProvider<Event>
signalingStateChangeEvent
= const EventStreamProvider<Event>
('signalingstatechange') -
const
Static factory designed to expose
signalingstatechange
events to event handlers that are not necessarily instances of RtcPeerConnection.…
Static Properties
Properties
- iceConnectionState → String
-
read-only
- iceGatheringState → String
-
read-only
- localDescription → RtcSessionDescription
-
read-only
- 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.
- onAddStream → Stream<MediaStreamEvent>
-
read-only
Stream of
addstream
events handled by thisRtcPeerConnection
. - onDataChannel → Stream<RtcDataChannelEvent>
-
read-only
Stream of
datachannel
events handled by thisRtcPeerConnection
. - onIceCandidate → Stream<RtcIceCandidateEvent>
-
read-only
Stream of
icecandidate
events handled by thisRtcPeerConnection
. - onIceConnectionStateChange → Stream<Event>
-
read-only
Stream of
iceconnectionstatechange
events handled by thisRtcPeerConnection
. - onNegotiationNeeded → Stream<Event>
-
read-only
Stream of
negotiationneeded
events handled by thisRtcPeerConnection
. - onRemoveStream → Stream<MediaStreamEvent>
-
read-only
Stream of
removestream
events handled by thisRtcPeerConnection
. - onSignalingStateChange → Stream<Event>
-
read-only
Stream of
signalingstatechange
events handled by thisRtcPeerConnection
. - remoteDescription → RtcSessionDescription
-
read-only
- signalingState → String
-
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