@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="RTCPeerConnection")
public class RTCPeerConnection
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
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.
|
RTCDataChannelEventHandler |
ondatachannel
The RTCPeerConnection.ondatachannel property is an EventHandler which specifies a function which is called when the datachannel event occurs on an RTCPeerConnection.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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) |
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().
|
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().
|
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) |
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) |
RTCRtpTransceiver |
addTransceiver(MediaStreamTrack trackOrKind) |
RTCRtpTransceiver |
addTransceiver(MediaStreamTrack trackOrKind,
RTCRtpTransceiverInit init) |
RTCRtpTransceiver |
addTransceiver(java.lang.String trackOrKind) |
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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 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 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 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.
|
RTCConfiguration |
getConfiguration()
The RTCPeerConnection.getConfiguration() method returns an RTCConfiguration object which indicates the current configuration of the RTCPeerConnection on which the method is called.
|
Promise<java.lang.String> |
getIdentityAssertion()
The RTCPeerConnection.getIdentityAssertion() method initiates the gathering of an identity assertion.
|
JsArray<RTCRtpReceiver> |
getReceivers()
The RTCPeerConnection.getReceivers() method returns an array of RTCRtpReceiver objects, each of which represents one RTP receiver.
|
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.
|
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.
|
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.
|
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.
|
Promise<java.lang.Void> |
setLocalDescription()
The RTCPeerConnection method setLocalDescription() changes the local description associated with the connection.
|
Promise<java.lang.Void> |
setLocalDescription(RTCLocalSessionDescriptionInit description)
The RTCPeerConnection method setLocalDescription() changes the local description associated with the connection.
|
Promise<java.lang.Void> |
setLocalDescription(RTCLocalSessionDescriptionInit description,
VoidFunction successCallback,
RTCPeerConnectionErrorCallback failureCallback)
The RTCPeerConnection method setLocalDescription() changes the local description associated with the connection.
|
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.
|
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, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@Nullable public EventHandler onconnectionstatechange
@Nullable public RTCDataChannelEventHandler ondatachannel
@Nullable public RTCPeerConnectionIceEventHandler onicecandidate
@Nullable public RTCPeerConnectionIceErrorEventHandler onicecandidateerror
@Nullable public EventHandler oniceconnectionstatechange
@Nullable public EventHandler onicegatheringstatechange
@Nullable public EventHandler onnegotiationneeded
@Nullable public EventHandler onsignalingstatechange
@Nullable public 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()
@Nonnull public Promise<java.lang.Void> addIceCandidate(@Nonnull RTCIceCandidateInit candidate)
@Nonnull public Promise<java.lang.Void> addIceCandidate()
@Nonnull public Promise<java.lang.Void> addIceCandidate(@Nonnull RTCIceCandidateInit candidate, @Nonnull VoidFunction successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
public void close()
@Nonnull public Promise<RTCSessionDescriptionInit> createAnswer(@Nonnull RTCAnswerOptions options)
@Nonnull public Promise<RTCSessionDescriptionInit> createAnswer()
@Nonnull public Promise<java.lang.Void> createAnswer(@Nonnull RTCSessionDescriptionCallback successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
@Nonnull public Promise<RTCSessionDescriptionInit> createOffer(@Nonnull RTCOfferOptions options)
@Nonnull public Promise<RTCSessionDescriptionInit> createOffer()
@Nonnull public Promise<java.lang.Void> createOffer(@Nonnull RTCSessionDescriptionCallback successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback, @Nonnull RTCOfferOptions options)
@Nonnull public Promise<java.lang.Void> createOffer(@Nonnull RTCSessionDescriptionCallback successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
@Nonnull public RTCConfiguration getConfiguration()
public void restartIce()
public void setConfiguration(@Nonnull
RTCConfiguration configuration)
public void setConfiguration()
@Nonnull public Promise<java.lang.Void> setLocalDescription(@Nonnull RTCLocalSessionDescriptionInit description)
@Nonnull public Promise<java.lang.Void> setLocalDescription()
@Nonnull public Promise<java.lang.Void> setLocalDescription(@Nonnull RTCLocalSessionDescriptionInit description, @Nonnull VoidFunction successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
@Nonnull public Promise<java.lang.Void> setRemoteDescription(@Nonnull RTCSessionDescriptionInit description)
@Nonnull public Promise<java.lang.Void> setRemoteDescription(@Nonnull RTCSessionDescriptionInit description, @Nonnull VoidFunction successCallback, @Nonnull RTCPeerConnectionErrorCallback failureCallback)
@Nonnull public static Promise<RTCCertificate> generateCertificate(@Nonnull AlgorithmIdentifier keygenAlgorithm)
@Nonnull public static Promise<RTCCertificate> generateCertificate(@Nonnull JsObject keygenAlgorithm)
@Nonnull public static Promise<RTCCertificate> generateCertificate(@Nonnull java.lang.String keygenAlgorithm)
@Nonnull public RTCRtpSender addTrack(@Nonnull MediaStreamTrack track, @Nonnull MediaStream... streams)
@Nonnull public RTCRtpTransceiver addTransceiver(@Nonnull MediaStreamTrack trackOrKind, @Nonnull RTCRtpTransceiverInit init)
@Nonnull public RTCRtpTransceiver addTransceiver(@Nonnull java.lang.String trackOrKind, @Nonnull RTCRtpTransceiverInit init)
@Nonnull public RTCRtpTransceiver addTransceiver(@Nonnull MediaStreamTrack trackOrKind)
@Nonnull public RTCRtpTransceiver addTransceiver(@Nonnull java.lang.String trackOrKind)
@Nonnull public JsArray<RTCRtpReceiver> getReceivers()
@Nonnull public JsArray<RTCRtpSender> getSenders()
@Nonnull public JsArray<RTCRtpTransceiver> getTransceivers()
public void removeTrack(@Nonnull
RTCRtpSender sender)
@Nonnull public RTCDataChannel createDataChannel(@Nonnull java.lang.String label, @Nonnull RTCDataChannelInit dataChannelDict)
@Nonnull public RTCDataChannel createDataChannel(@Nonnull java.lang.String label)
@Nonnull public Promise<RTCStatsReport> getStats(@Nullable MediaStreamTrack selector)
@Nonnull public Promise<RTCStatsReport> getStats()
@Nonnull public 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)