@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="RTCPeerConnection")
public class RTCPeerConnection
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
@JsNullable EventHandler |
onconnectionstatechange
The RTCPeerConnection.onconnectionstatechange property specifies an EventHandler which is called to handle the connectionstatechange event when it occurs on an instance of RTCPeerConnection.
|
@JsNullable RTCDataChannelEventHandler |
ondatachannel
The RTCPeerConnection.ondatachannel property is an EventHandler which specifies a function which is called when the datachannel event occurs on an RTCPeerConnection.
|
@JsNullable RTCPeerConnectionIceEventHandler |
onicecandidate
The RTCPeerConnection property onicecandidate property is an EventHandler which specifies a function to be called when the icecandidate event occurs on an RTCPeerConnection instance.
|
@JsNullable RTCPeerConnectionIceErrorEventHandler |
onicecandidateerror
The RTCPeerConnection.onicecandidateerror property is an EventHandler which specifies a function which is called to handle the icecandidateerror event when it occurs on an RTCPeerConnection instance.
|
@JsNullable EventHandler |
oniceconnectionstatechange
The RTCPeerConnection.oniceconnectionstatechange property is an event handler which specifies a function to be called when the iceconnectionstatechange event is fired on an RTCPeerConnection instance.
|
@JsNullable EventHandler |
onicegatheringstatechange
The RTCPeerConnection.onicegatheringstatechange property is an EventHandler which specifies a function to be called when the icegatheringstatechange event is sent to an RTCPeerConnection instance.
|
@JsNullable EventHandler |
onnegotiationneeded
The RTCPeerConnection interface's onnegotiationneeded property is an EventListener which specifies a function which is called to handle the negotiationneeded event when it occurs on an RTCPeerConnection instance.
|
@JsNullable EventHandler |
onsignalingstatechange
The onsignalingstatechange event handler property of the RTCPeerConnection interface specifies a function to be called when the signalingstatechange event occurs on an RTCPeerConnection interface.
|
@JsNullable RTCTrackEventHandler |
ontrack
The RTCPeerConnection property ontrack is an EventHandler which specifies a function to be called when the track event occurs, indicating that a track has been added to the RTCPeerConnection.
|
| Constructor and Description |
|---|
RTCPeerConnection()
The RTCPeerConnection() constructor returns a newly-created RTCPeerConnection, which represents a connection between the local device and a remote peer.
|
RTCPeerConnection(RTCConfiguration configuration)
The RTCPeerConnection() constructor returns a newly-created RTCPeerConnection, which represents a connection between the local device and a remote peer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionstatechangeListener(EventListener callback) |
void |
addConnectionstatechangeListener(EventListener callback,
AddEventListenerOptions options) |
void |
addConnectionstatechangeListener(EventListener callback,
boolean useCapture) |
void |
addDatachannelListener(RTCDataChannelEventListener callback) |
void |
addDatachannelListener(RTCDataChannelEventListener callback,
AddEventListenerOptions options) |
void |
addDatachannelListener(RTCDataChannelEventListener callback,
boolean useCapture) |
@JsNonNull Promise<java.lang.Void> |
addIceCandidate()
When a web site or app using RTCPeerConnection receives a new ICE candidate from the remote peer over its signaling channel, it delivers the newly-received candidate to the browser's ICE agent by calling RTCPeerConnection.addIceCandidate().
|
@JsNonNull Promise<java.lang.Void> |
addIceCandidate(RTCIceCandidateInit candidate)
When a web site or app using RTCPeerConnection receives a new ICE candidate from the remote peer over its signaling channel, it delivers the newly-received candidate to the browser's ICE agent by calling RTCPeerConnection.addIceCandidate().
|
@JsNonNull Promise<java.lang.Void> |
addIceCandidate(RTCIceCandidateInit candidate,
VoidFunction successCallback,
RTCPeerConnectionErrorCallback failureCallback)
When a web site or app using RTCPeerConnection receives a new ICE candidate from the remote peer over its signaling channel, it delivers the newly-received candidate to the browser's ICE agent by calling RTCPeerConnection.addIceCandidate().
|
void |
addIcecandidateerrorListener(RTCPeerConnectionIceErrorEventListener callback) |
void |
addIcecandidateerrorListener(RTCPeerConnectionIceErrorEventListener callback,
AddEventListenerOptions options) |
void |
addIcecandidateerrorListener(RTCPeerConnectionIceErrorEventListener callback,
boolean useCapture) |
void |
addIcecandidateListener(RTCPeerConnectionIceEventListener callback) |
void |
addIcecandidateListener(RTCPeerConnectionIceEventListener callback,
AddEventListenerOptions options) |
void |
addIcecandidateListener(RTCPeerConnectionIceEventListener callback,
boolean useCapture) |
void |
addIceconnectionstatechangeListener(EventListener callback) |
void |
addIceconnectionstatechangeListener(EventListener callback,
AddEventListenerOptions options) |
void |
addIceconnectionstatechangeListener(EventListener callback,
boolean useCapture) |
void |
addIcegatheringstatechangeListener(EventListener callback) |
void |
addIcegatheringstatechangeListener(EventListener callback,
AddEventListenerOptions options) |
void |
addIcegatheringstatechangeListener(EventListener callback,
boolean useCapture) |
void |
addNegotiationneededListener(EventListener callback) |
void |
addNegotiationneededListener(EventListener callback,
AddEventListenerOptions options) |
void |
addNegotiationneededListener(EventListener callback,
boolean useCapture) |
void |
addPeeridentityListener(EventListener callback) |
void |
addPeeridentityListener(EventListener callback,
AddEventListenerOptions options) |
void |
addPeeridentityListener(EventListener callback,
boolean useCapture) |
void |
addSignalingstatechangeListener(EventListener callback) |
void |
addSignalingstatechangeListener(EventListener callback,
AddEventListenerOptions options) |
void |
addSignalingstatechangeListener(EventListener callback,
boolean useCapture) |
@JsNonNull RTCRtpSender |
addTrack(MediaStreamTrack track,
MediaStream... streams)
The RTCPeerConnection method addTrack() adds a new media track to the set of tracks which will be transmitted to the other peer.
|
void |
addTrackListener(RTCTrackEventListener callback) |
void |
addTrackListener(RTCTrackEventListener callback,
AddEventListenerOptions options) |
void |
addTrackListener(RTCTrackEventListener callback,
boolean useCapture) |
@JsNonNull RTCRtpTransceiver |
addTransceiver(MediaStreamTrack trackOrKind) |
@JsNonNull RTCRtpTransceiver |
addTransceiver(MediaStreamTrack trackOrKind,
RTCRtpTransceiverInit init) |
@JsNonNull RTCRtpTransceiver |
addTransceiver(java.lang.String trackOrKind) |
@JsNonNull RTCRtpTransceiver |
addTransceiver(java.lang.String trackOrKind,
RTCRtpTransceiverInit init) |
java.lang.Boolean |
canTrickleIceCandidates()
The read-only RTCPeerConnection property canTrickleIceCandidates returns a Boolean which indicates whether or not the remote peer can accept trickled ICE candidates.
|
void |
close()
The RTCPeerConnection.close() method closes the current peer connection.
|
java.lang.String |
connectionState()
The read-only connectionState property of the RTCPeerConnection interface indicates the current state of the peer connection by returning one of the string values specified by the enum RTCPeerConnectionState.
|
@JsNonNull Promise<RTCSessionDescriptionInit> |
createAnswer()
The createAnswer() method on the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection.
|
@JsNonNull Promise<RTCSessionDescriptionInit> |
createAnswer(RTCAnswerOptions options)
The createAnswer() method on the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection.
|
@JsNonNull Promise<java.lang.Void> |
createAnswer(RTCSessionDescriptionCallback successCallback,
RTCPeerConnectionErrorCallback failureCallback)
The createAnswer() method on the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection.
|
@JsNonNull RTCDataChannel |
createDataChannel(java.lang.String label)
The createDataChannel() method on the RTCPeerConnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.
|
@JsNonNull RTCDataChannel |
createDataChannel(java.lang.String label,
RTCDataChannelInit dataChannelDict)
The createDataChannel() method on the RTCPeerConnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.
|
@JsNonNull Promise<RTCSessionDescriptionInit> |
createOffer()
The createOffer() method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.
|
@JsNonNull Promise<RTCSessionDescriptionInit> |
createOffer(RTCOfferOptions options)
The createOffer() method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.
|
@JsNonNull Promise<java.lang.Void> |
createOffer(RTCSessionDescriptionCallback successCallback,
RTCPeerConnectionErrorCallback failureCallback)
The createOffer() method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.
|
@JsNonNull Promise<java.lang.Void> |
createOffer(RTCSessionDescriptionCallback successCallback,
RTCPeerConnectionErrorCallback failureCallback,
RTCOfferOptions options)
The createOffer() method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.
|
RTCSessionDescription |
currentLocalDescription()
The read-only property RTCPeerConnection.currentLocalDescription returns an RTCSessionDescription object describing the local end of the connection as it was most recently successfully negotiated since the last time the RTCPeerConnection finished negotiating and connecting to a remote peer.
|
RTCSessionDescription |
currentRemoteDescription()
The read-only property RTCPeerConnection.currentRemoteDescription returns an RTCSessionDescription object describing the remote end of the connection as it was most recently successfully negotiated since the last time the RTCPeerConnection finished negotiating and connecting to a remote peer.
|
static @JsNonNull Promise<RTCCertificate> |
generateCertificate(AlgorithmIdentifier keygenAlgorithm)
The static RTCPeerConnection.generateCertificate() function creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it's generated.
|
static @JsNonNull Promise<RTCCertificate> |
generateCertificate(JsObject keygenAlgorithm)
The static RTCPeerConnection.generateCertificate() function creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it's generated.
|
static @JsNonNull Promise<RTCCertificate> |
generateCertificate(java.lang.String keygenAlgorithm)
The static RTCPeerConnection.generateCertificate() function creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it's generated.
|
@JsNonNull RTCConfiguration |
getConfiguration()
The RTCPeerConnection.getConfiguration() method returns an RTCConfiguration object which indicates the current configuration of the RTCPeerConnection on which the method is called.
|
@JsNonNull Promise<java.lang.String> |
getIdentityAssertion()
The RTCPeerConnection.getIdentityAssertion() method initiates the gathering of an identity assertion.
|
@JsNonNull JsArray<RTCRtpReceiver> |
getReceivers()
The RTCPeerConnection.getReceivers() method returns an array of RTCRtpReceiver objects, each of which represents one RTP receiver.
|
@JsNonNull JsArray<RTCRtpSender> |
getSenders()
The RTCPeerConnection method getSenders() returns an array of RTCRtpSender objects, each of which represents the RTP sender responsible for transmitting one track's data.
|
@JsNonNull Promise<RTCStatsReport> |
getStats()
The RTCPeerConnection method getStats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified MediaStreamTrack.
|
@JsNonNull Promise<RTCStatsReport> |
getStats(MediaStreamTrack selector)
The RTCPeerConnection method getStats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified MediaStreamTrack.
|
@JsNonNull JsArray<RTCRtpTransceiver> |
getTransceivers()
The RTCPeerConnection interface's getTransceivers() method returns a list of the RTCRtpTransceiver objects being used to send and receive data on the connection.
|
java.lang.String |
iceConnectionState()
The read-only property RTCPeerConnection.iceConnectionState returns an enum of type RTCIceConnectionState which state of the ICE agent associated with the RTCPeerConnection.
|
java.lang.String |
iceGatheringState()
The read-only property RTCPeerConnection.iceGatheringState returns an enum of type RTCIceGatheringState that describes connection's ICE gathering state.
|
java.lang.String |
idpErrorInfo() |
java.lang.String |
idpLoginUrl() |
RTCSessionDescription |
localDescription()
The read-only property RTCPeerConnection.localDescription returns an RTCSessionDescription describing the session for the local end of the connection.
|
Promise<RTCIdentityAssertion> |
peerIdentity()
The read-only RTCPeerConnection property peerIdentity returns a JavaScript Promise that resolves to an RTCIdentityAssertion which contains a DOMString identifying the remote peer.
|
RTCSessionDescription |
pendingLocalDescription()
The read-only property RTCPeerConnection.pendingLocalDescription returns an RTCSessionDescription object describing a pending configuration change for the local end of the connection.
|
RTCSessionDescription |
pendingRemoteDescription()
The read-only property RTCPeerConnection.pendingRemoteDescription returns an RTCSessionDescription object describing a pending configuration change for the remote end of the connection.
|
RTCSessionDescription |
remoteDescription()
The read-only property RTCPeerConnection.remoteDescription returns a RTCSessionDescription describing the session (which includes configuration and media information) for the remote end of the connection.
|
void |
removeConnectionstatechangeListener(EventListener callback) |
void |
removeConnectionstatechangeListener(EventListener callback,
boolean useCapture) |
void |
removeConnectionstatechangeListener(EventListener callback,
EventListenerOptions options) |
void |
removeDatachannelListener(RTCDataChannelEventListener callback) |
void |
removeDatachannelListener(RTCDataChannelEventListener callback,
boolean useCapture) |
void |
removeDatachannelListener(RTCDataChannelEventListener callback,
EventListenerOptions options) |
void |
removeIcecandidateerrorListener(RTCPeerConnectionIceErrorEventListener callback) |
void |
removeIcecandidateerrorListener(RTCPeerConnectionIceErrorEventListener callback,
boolean useCapture) |
void |
removeIcecandidateerrorListener(RTCPeerConnectionIceErrorEventListener callback,
EventListenerOptions options) |
void |
removeIcecandidateListener(RTCPeerConnectionIceEventListener callback) |
void |
removeIcecandidateListener(RTCPeerConnectionIceEventListener callback,
boolean useCapture) |
void |
removeIcecandidateListener(RTCPeerConnectionIceEventListener callback,
EventListenerOptions options) |
void |
removeIceconnectionstatechangeListener(EventListener callback) |
void |
removeIceconnectionstatechangeListener(EventListener callback,
boolean useCapture) |
void |
removeIceconnectionstatechangeListener(EventListener callback,
EventListenerOptions options) |
void |
removeIcegatheringstatechangeListener(EventListener callback) |
void |
removeIcegatheringstatechangeListener(EventListener callback,
boolean useCapture) |
void |
removeIcegatheringstatechangeListener(EventListener callback,
EventListenerOptions options) |
void |
removeNegotiationneededListener(EventListener callback) |
void |
removeNegotiationneededListener(EventListener callback,
boolean useCapture) |
void |
removeNegotiationneededListener(EventListener callback,
EventListenerOptions options) |
void |
removePeeridentityListener(EventListener callback) |
void |
removePeeridentityListener(EventListener callback,
boolean useCapture) |
void |
removePeeridentityListener(EventListener callback,
EventListenerOptions options) |
void |
removeSignalingstatechangeListener(EventListener callback) |
void |
removeSignalingstatechangeListener(EventListener callback,
boolean useCapture) |
void |
removeSignalingstatechangeListener(EventListener callback,
EventListenerOptions options) |
void |
removeTrack(RTCRtpSender sender)
The RTCPeerConnection.removeTrack() method tells the local end of the connection to stop sending media from the specified track, without actually removing the corresponding RTCRtpSender from the list of senders as reported by RTCPeerConnection.getSenders().
|
void |
removeTrackListener(RTCTrackEventListener callback) |
void |
removeTrackListener(RTCTrackEventListener callback,
boolean useCapture) |
void |
removeTrackListener(RTCTrackEventListener callback,
EventListenerOptions options) |
void |
restartIce()
The WebRTC API's RTCPeerConnection interface offers the restartIce() method to allow a web application to easily request that ICE candidate gathering be redone on both ends of the connection.
|
RTCSctpTransport |
sctp()
The read-only sctp property on the RTCPeerConnection interface returns an RTCSctpTransport describing the SCTP transport over which SCTP data is being sent and received.
|
void |
setConfiguration()
The RTCPeerConnection.setConfiguration() method sets the current configuration of the RTCPeerConnection based on the values included in the specified RTCConfiguration object.
|
void |
setConfiguration(RTCConfiguration configuration)
The RTCPeerConnection.setConfiguration() method sets the current configuration of the RTCPeerConnection based on the values included in the specified RTCConfiguration object.
|
void |
setIdentityProvider(java.lang.String provider)
The RTCPeerConnection.setIdentityProvider() method sets the Identity Provider (IdP) to the triplet given in parameter: its name, the protocol used to communicate with it (optional) and an optional username.
|
void |
setIdentityProvider(java.lang.String provider,
RTCIdentityProviderOptions options)
The RTCPeerConnection.setIdentityProvider() method sets the Identity Provider (IdP) to the triplet given in parameter: its name, the protocol used to communicate with it (optional) and an optional username.
|
@JsNonNull Promise<java.lang.Void> |
setLocalDescription()
The RTCPeerConnection method setLocalDescription() changes the local description associated with the connection.
|
@JsNonNull Promise<java.lang.Void> |
setLocalDescription(RTCLocalSessionDescriptionInit description)
The RTCPeerConnection method setLocalDescription() changes the local description associated with the connection.
|
@JsNonNull Promise<java.lang.Void> |
setLocalDescription(RTCLocalSessionDescriptionInit description,
VoidFunction successCallback,
RTCPeerConnectionErrorCallback failureCallback)
The RTCPeerConnection method setLocalDescription() changes the local description associated with the connection.
|
@JsNonNull Promise<java.lang.Void> |
setRemoteDescription(RTCSessionDescriptionInit description)
The RTCPeerConnection method setRemoteDescription() sets the specified session description as the remote peer's current offer or answer.
|
@JsNonNull Promise<java.lang.Void> |
setRemoteDescription(RTCSessionDescriptionInit description,
VoidFunction successCallback,
RTCPeerConnectionErrorCallback failureCallback)
The RTCPeerConnection method setRemoteDescription() sets the specified session description as the remote peer's current offer or answer.
|
java.lang.String |
signalingState()
The read-only signalingState property on the RTCPeerConnection interface returns one of the string values specified by the RTCSignalingState enum; these values describe the state of the signaling process on the local end of the connection while connecting or reconnecting to another peer.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNullable EventHandler onconnectionstatechange
public @JsNullable RTCDataChannelEventHandler ondatachannel
public @JsNullable RTCPeerConnectionIceEventHandler onicecandidate
public @JsNullable RTCPeerConnectionIceErrorEventHandler onicecandidateerror
public @JsNullable EventHandler oniceconnectionstatechange
public @JsNullable EventHandler onicegatheringstatechange
public @JsNullable EventHandler onnegotiationneeded
public @JsNullable EventHandler onsignalingstatechange
public @JsNullable RTCTrackEventHandler ontrack
public RTCPeerConnection(@Nonnull
RTCConfiguration configuration)
public RTCPeerConnection()
@JsProperty(name="canTrickleIceCandidates") @Nullable public java.lang.Boolean canTrickleIceCandidates()
@JsProperty(name="connectionState") @Nonnull @RTCPeerConnectionState public java.lang.String connectionState()
@JsProperty(name="currentLocalDescription") @Nullable public RTCSessionDescription currentLocalDescription()
@JsProperty(name="currentRemoteDescription") @Nullable public RTCSessionDescription currentRemoteDescription()
@JsProperty(name="iceConnectionState") @Nonnull @RTCIceConnectionState public java.lang.String iceConnectionState()
@JsProperty(name="iceGatheringState") @Nonnull @RTCIceGatheringState public java.lang.String iceGatheringState()
@JsProperty(name="idpErrorInfo") @Nullable public java.lang.String idpErrorInfo()
@JsProperty(name="idpLoginUrl") @Nullable public java.lang.String idpLoginUrl()
@JsProperty(name="localDescription") @Nullable public RTCSessionDescription localDescription()
@JsProperty(name="peerIdentity") @Nonnull public Promise<RTCIdentityAssertion> peerIdentity()
@JsProperty(name="pendingLocalDescription") @Nullable public RTCSessionDescription pendingLocalDescription()
@JsProperty(name="pendingRemoteDescription") @Nullable public RTCSessionDescription pendingRemoteDescription()
@JsProperty(name="remoteDescription") @Nullable public RTCSessionDescription remoteDescription()
@JsProperty(name="sctp") @Nullable public RTCSctpTransport sctp()
@JsProperty(name="signalingState") @Nonnull @RTCSignalingState public java.lang.String signalingState()
public @JsNonNull Promise<java.lang.Void> addIceCandidate(@Nonnull RTCIceCandidateInit candidate)
public @JsNonNull Promise<java.lang.Void> addIceCandidate()
public @JsNonNull Promise<java.lang.Void> addIceCandidate(@Nonnull RTCIceCandidateInit candidate, @Nonnull VoidFunction successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
public void close()
public @JsNonNull Promise<RTCSessionDescriptionInit> createAnswer(@Nonnull RTCAnswerOptions options)
public @JsNonNull Promise<RTCSessionDescriptionInit> createAnswer()
public @JsNonNull Promise<java.lang.Void> createAnswer(@Nonnull RTCSessionDescriptionCallback successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
public @JsNonNull Promise<RTCSessionDescriptionInit> createOffer(@Nonnull RTCOfferOptions options)
public @JsNonNull Promise<RTCSessionDescriptionInit> createOffer()
public @JsNonNull Promise<java.lang.Void> createOffer(@Nonnull RTCSessionDescriptionCallback successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback, @Nonnull RTCOfferOptions options)
public @JsNonNull Promise<java.lang.Void> createOffer(@Nonnull RTCSessionDescriptionCallback successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
public @JsNonNull RTCConfiguration getConfiguration()
public void restartIce()
public void setConfiguration(@Nonnull
RTCConfiguration configuration)
public void setConfiguration()
public @JsNonNull Promise<java.lang.Void> setLocalDescription(@Nonnull RTCLocalSessionDescriptionInit description)
public @JsNonNull Promise<java.lang.Void> setLocalDescription()
public @JsNonNull Promise<java.lang.Void> setLocalDescription(@Nonnull RTCLocalSessionDescriptionInit description, @Nonnull VoidFunction successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
public @JsNonNull Promise<java.lang.Void> setRemoteDescription(@Nonnull RTCSessionDescriptionInit description)
public @JsNonNull Promise<java.lang.Void> setRemoteDescription(@Nonnull RTCSessionDescriptionInit description, @Nonnull VoidFunction successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
public static @JsNonNull Promise<RTCCertificate> generateCertificate(@Nonnull AlgorithmIdentifier keygenAlgorithm)
public static @JsNonNull Promise<RTCCertificate> generateCertificate(@Nonnull JsObject keygenAlgorithm)
public static @JsNonNull Promise<RTCCertificate> generateCertificate(@Nonnull java.lang.String keygenAlgorithm)
public @JsNonNull RTCRtpSender addTrack(@Nonnull MediaStreamTrack track, @Nonnull MediaStream... streams)
public @JsNonNull RTCRtpTransceiver addTransceiver(@Nonnull MediaStreamTrack trackOrKind, @Nonnull RTCRtpTransceiverInit init)
public @JsNonNull RTCRtpTransceiver addTransceiver(@Nonnull java.lang.String trackOrKind, @Nonnull RTCRtpTransceiverInit init)
public @JsNonNull RTCRtpTransceiver addTransceiver(@Nonnull MediaStreamTrack trackOrKind)
public @JsNonNull RTCRtpTransceiver addTransceiver(@Nonnull java.lang.String trackOrKind)
public @JsNonNull JsArray<RTCRtpReceiver> getReceivers()
public @JsNonNull JsArray<RTCRtpSender> getSenders()
public @JsNonNull JsArray<RTCRtpTransceiver> getTransceivers()
public void removeTrack(@Nonnull
RTCRtpSender sender)
public @JsNonNull RTCDataChannel createDataChannel(@Nonnull java.lang.String label, @Nonnull RTCDataChannelInit dataChannelDict)
public @JsNonNull RTCDataChannel createDataChannel(@Nonnull java.lang.String label)
public @JsNonNull Promise<RTCStatsReport> getStats(@Nullable MediaStreamTrack selector)
public @JsNonNull Promise<RTCStatsReport> getStats()
public @JsNonNull Promise<java.lang.String> getIdentityAssertion()
public void setIdentityProvider(@Nonnull
java.lang.String provider,
@Nonnull
RTCIdentityProviderOptions options)
public void setIdentityProvider(@Nonnull
java.lang.String provider)
@JsOverlay
public final void addDatachannelListener(@Nonnull
RTCDataChannelEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addDatachannelListener(@Nonnull
RTCDataChannelEventListener callback,
boolean useCapture)
@JsOverlay
public final void addDatachannelListener(@Nonnull
RTCDataChannelEventListener callback)
@JsOverlay
public final void removeDatachannelListener(@Nonnull
RTCDataChannelEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeDatachannelListener(@Nonnull
RTCDataChannelEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeDatachannelListener(@Nonnull
RTCDataChannelEventListener callback)
@JsOverlay
public final void addIcecandidateListener(@Nonnull
RTCPeerConnectionIceEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addIcecandidateListener(@Nonnull
RTCPeerConnectionIceEventListener callback,
boolean useCapture)
@JsOverlay
public final void addIcecandidateListener(@Nonnull
RTCPeerConnectionIceEventListener callback)
@JsOverlay
public final void removeIcecandidateListener(@Nonnull
RTCPeerConnectionIceEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeIcecandidateListener(@Nonnull
RTCPeerConnectionIceEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeIcecandidateListener(@Nonnull
RTCPeerConnectionIceEventListener callback)
@JsOverlay
public final void addIcecandidateerrorListener(@Nonnull
RTCPeerConnectionIceErrorEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addIcecandidateerrorListener(@Nonnull
RTCPeerConnectionIceErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void addIcecandidateerrorListener(@Nonnull
RTCPeerConnectionIceErrorEventListener callback)
@JsOverlay
public final void removeIcecandidateerrorListener(@Nonnull
RTCPeerConnectionIceErrorEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeIcecandidateerrorListener(@Nonnull
RTCPeerConnectionIceErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeIcecandidateerrorListener(@Nonnull
RTCPeerConnectionIceErrorEventListener callback)
@JsOverlay
public final void addTrackListener(@Nonnull
RTCTrackEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addTrackListener(@Nonnull
RTCTrackEventListener callback,
boolean useCapture)
@JsOverlay
public final void addTrackListener(@Nonnull
RTCTrackEventListener callback)
@JsOverlay
public final void removeTrackListener(@Nonnull
RTCTrackEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeTrackListener(@Nonnull
RTCTrackEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeTrackListener(@Nonnull
RTCTrackEventListener callback)
@JsOverlay
public final void addConnectionstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addConnectionstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addConnectionstatechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeConnectionstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeConnectionstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeConnectionstatechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addIceconnectionstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addIceconnectionstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addIceconnectionstatechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeIceconnectionstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeIceconnectionstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeIceconnectionstatechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addIcegatheringstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addIcegatheringstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addIcegatheringstatechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeIcegatheringstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeIcegatheringstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeIcegatheringstatechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addNegotiationneededListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addNegotiationneededListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addNegotiationneededListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeNegotiationneededListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeNegotiationneededListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeNegotiationneededListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addPeeridentityListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addPeeridentityListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addPeeridentityListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removePeeridentityListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removePeeridentityListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removePeeridentityListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addSignalingstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addSignalingstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addSignalingstatechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeSignalingstatechangeListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeSignalingstatechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeSignalingstatechangeListener(@Nonnull
EventListener callback)