package js.html.rtc
extends EventTarget
Available on js
The RTCPeerConnection interface represents a WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed.
Documentation RTCPeerConnection by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
staticgenerateCertificate(keygenAlgorithm:Dynamic):Promise<Certificate>staticgenerateCertificate(keygenAlgorithm:String):Promise<Certificate>Throws:
null |
DOMError |
|---|
new(?configuration:Null<Configuration>, ?constraints:Dynamic)Throws:
null |
DOMError |
|---|
read onlycanTrickleIceCandidates:Boolread onlycurrentLocalDescription:SessionDescriptionread onlycurrentRemoteDescription:SessionDescriptionread onlyiceConnectionState:IceConnectionStateread onlyiceGatheringState:IceGatheringStateread onlyidpLoginUrl:Stringread onlylocalDescription:SessionDescriptiononaddstream:Functiononaddtrack:Functionondatachannel:Functiononicecandidate:Functiononiceconnectionstatechange:Functiononicegatheringstatechange:Functiononnegotiationneeded:Functiononremovestream:Functiononsignalingstatechange:Functionontrack:Functionread onlypeerIdentity:Promise<IdentityAssertion>read onlypendingLocalDescription:SessionDescriptionread onlypendingRemoteDescription:SessionDescriptionread onlyremoteDescription:SessionDescriptionread onlysignalingState:SignalingStateaddIceCandidate(candidate:IceCandidate, successCallback:() ‑> Void, failureCallback:DOMException ‑> Void):Promise<Void>addIceCandidate(candidate:IceCandidate):Promise<Void>addIceCandidate(candidate:IceCandidateInit):Promise<Void>addStream(stream:MediaStream):VoidaddTrack(track:MediaStreamTrack, stream:MediaStream, moreStreams:Rest<MediaStream>):RtpSenderaddTransceiver(trackOrKind:MediaStreamTrack, ?init:Null<RtpTransceiverInit>):RtpTransceiveraddTransceiver(trackOrKind:String, ?init:Null<RtpTransceiverInit>):RtpTransceiverclose():VoidcreateAnswer(successCallback:SessionDescriptionInit ‑> Void, failureCallback:DOMException ‑> Void):Promise<Void>createAnswer(?options:Null<AnswerOptions>):Promise<SessionDescriptionInit>createDataChannel(label:String, ?dataChannelDict:Null<DataChannelInit>):DataChannelcreateOffer(successCallback:SessionDescriptionInit ‑> Void, failureCallback:DOMException ‑> Void, ?options:Null<OfferOptions>):Promise<Void>createOffer(?options:Null<OfferOptions>):Promise<SessionDescriptionInit>getConfiguration():ConfigurationgetIdentityAssertion():Promise<String>getLocalStreams():Array<MediaStream>getReceivers():Array<RtpReceiver>getRemoteStreams():Array<MediaStream>getSenders():Array<RtpSender>getStats(selector:MediaStreamTrack, successCallback:StatsReport ‑> Void, failureCallback:DOMException ‑> Void):Promise<Void>getStats(?selector:MediaStreamTrack):Promise<StatsReport>getTransceivers():Array<RtpTransceiver>removeTrack(sender:RtpSender):VoidsetIdentityProvider(provider:String, ?options:Null<IdentityProviderOptions>):VoidsetLocalDescription(description:SessionDescriptionInit, successCallback:() ‑> Void, failureCallback:DOMException ‑> Void):Promise<Void>setLocalDescription(description:SessionDescriptionInit):Promise<Void>setRemoteDescription(description:SessionDescriptionInit, successCallback:() ‑> Void, failureCallback:DOMException ‑> Void):Promise<Void>setRemoteDescription(description:SessionDescriptionInit):Promise<Void>
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/rtc/PeerConnection.html