RtcPeerConnection class
- Inheritance
- Object
- EventTarget
- RtcPeerConnection
- Annotations
- @SupportedBrowser.new(SupportedBrowser.CHROME)
- @Native.new("RTCPeerConnection,webkitRTCPeerConnection,mozRTCPeerConnection")
Constructors
- RtcPeerConnection(MaprtcIceServers, [Map?mediaConstraints])
- factory
Properties
- connectionState→String?
- no setter
- hashCode→int
- The hash code for this object.no setterinherited
- iceConnectionState→String?
- no setter
- iceGatheringState→String?
- no setter
- localDescription→RtcSessionDescription?
- no setter
- on→Events
- This is an ease-of-use accessor for event streams which should only beused when an explicit accessor is not available.no setterinherited
- onAddStream→Stream<
MediaStreamEvent> - Stream of
addstreamevents handled by thisRtcPeerConnection.no setter - onConnectionStateChange→Stream<
Event> - Stream of
connectionstatechangeevents handled by thisRtcPeerConnection.no setter - onDataChannel→Stream<
RtcDataChannelEvent> - Stream of
datachannelevents handled by thisRtcPeerConnection.no setter - onIceCandidate→Stream<
RtcPeerConnectionIceEvent> - Stream of
icecandidateevents handled by thisRtcPeerConnection.no setter - onIceConnectionStateChange→Stream<
Event> - Stream of
iceconnectionstatechangeevents handled by thisRtcPeerConnection.no setter - onNegotiationNeeded→Stream<
Event> - Stream of
negotiationneededevents handled by thisRtcPeerConnection.no setter - onRemoveStream→Stream<
MediaStreamEvent> - Stream of
removestreamevents handled by thisRtcPeerConnection.no setter - onSignalingStateChange→Stream<
Event> - Stream of
signalingstatechangeevents handled by thisRtcPeerConnection.no setter - onTrack→Stream<
RtcTrackEvent> - Stream of
trackevents handled by thisRtcPeerConnection.no setter - remoteDescription→RtcSessionDescription?
- no setter
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- signalingState→String?
- no setter
Methods
- addEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- addIceCandidate(
Objectcandidate, [VoidCallback?successCallback,RtcPeerConnectionErrorCallback?failureCallback])→Future - addStream(
MediaStream?stream, [Map?mediaConstraints])→ void - addTrack(
MediaStreamTracktrack,MediaStreamstreams)→RtcRtpSender - close(
)→ void - createAnswer(
[Map?options])→Future< RtcSessionDescription> - createDataChannel(
Stringlabel, [Map?dataChannelDict])→RtcDataChannel - createDtmfSender(
MediaStreamTracktrack)→RtcDtmfSender - createOffer(
[Map?options])→Future< RtcSessionDescription> - dispatchEvent(
Eventevent)→bool - inherited
- getLegacyStats(
[MediaStreamTrack?selector])→Future< RtcStatsResponse> - Temporarily exposes _getStats and old getStats as getLegacyStats until Chrome fully supportsnew getStats API.
- getLocalStreams(
)→List< MediaStream> - getReceivers(
)→List< RtcRtpReceiver> - getRemoteStreams(
)→List< MediaStream> - getSenders(
)→List< RtcRtpSender> - getStats(
)→Future< RtcStatsReport> - noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- removeEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- removeStream(
MediaStream?stream)→ void - removeTrack(
RtcRtpSendersender)→ void - setConfiguration(
Mapconfiguration)→ void - setLocalDescription(
Mapdescription)→Future - setRemoteDescription(
Mapdescription)→Future - toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited
Static Properties
Static Methods
- generateCertificate(
dynamickeygenAlgorithm)→Future
Constants
- addStreamEvent→ constEventStreamProvider<
MediaStreamEvent> - Static factory designed to expose
addstreamevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - connectionStateChangeEvent→ constEventStreamProvider<
Event> - Static factory designed to expose
connectionstatechangeevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - dataChannelEvent→ constEventStreamProvider<
RtcDataChannelEvent> - Static factory designed to expose
datachannelevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - iceCandidateEvent→ constEventStreamProvider<
RtcPeerConnectionIceEvent> - Static factory designed to expose
icecandidateevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - iceConnectionStateChangeEvent→ constEventStreamProvider<
Event> - Static factory designed to expose
iceconnectionstatechangeevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - negotiationNeededEvent→ constEventStreamProvider<
Event> - Static factory designed to expose
negotiationneededevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - removeStreamEvent→ constEventStreamProvider<
MediaStreamEvent> - Static factory designed to expose
removestreamevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - signalingStateChangeEvent→ constEventStreamProvider<
Event> - Static factory designed to expose
signalingstatechangeevents to eventhandlers that are not necessarily instances ofRtcPeerConnection. - trackEvent→ constEventStreamProvider<
RtcTrackEvent> - Static factory designed to expose
trackevents to eventhandlers that are not necessarily instances ofRtcPeerConnection.