@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="RTCRtpSender")
public class RTCRtpSender
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
RTCRtpSender() |
| Modifier and Type | Method and Description |
|---|---|
RTCDTMFSender |
dtmf()
The read-only dtmf property on the RTCRtpSender interface returns a RTCDTMFSender object which can be used to send DTMF tones over the RTCPeerConnection.
|
static RTCRtpCapabilities |
getCapabilities(java.lang.String kind)
The static function RTCRtpSender.getCapabilities() returns an RTCRtpCapabilities object describing the codecs and capabilities supported by the RTCRtpSender.
|
RTCRtpSendParameters |
getParameters()
The getParameters() method of the RTCRtpSender interface returns an RTCRtpSendParameters object describing the current configuration for the encoding and transmission of media on the sender's track.
|
Promise<RTCStatsReport> |
getStats()
The RTCRtpSender method getStats() asynchronously requests an RTCStatsReport object which provides statistics about outgoing traffic on the RTCPeerConnection which owns the sender, returning a Promise which is fulfilled when the results are available.
|
Promise<java.lang.Void> |
replaceTrack(MediaStreamTrack withTrack)
The RTCRtpSender method replaceTrack() replaces the track currently being used as the sender's source with a new MediaStreamTrack.
|
Promise<java.lang.Void> |
setParameters(RTCRtpSendParameters parameters)
The setParameters() method of the RTCRtpSender interface applies changes the configuration of sender's track, which is the MediaStreamTrack for which the RTCRtpSender is responsible.
|
void |
setStreams(MediaStream... streams)
The RTCRtpSender method setStreams() associates the sender's track with the specified MediaStream or array of MediaStream objects.
|
MediaStreamTrack |
track()
The track read-only property of the RTCRtpSender interface returns the MediaStreamTrack which is being handled by the RTCRtpSender.
|
RTCDtlsTransport |
transport()
The read-only transport property of an RTCRtpSender object provides the RTCDtlsTransport object used to interact with the underlying transport over which the sender is exchanging Real-time Transport Control Protocol (RTCP) packets.
|
@JsProperty(name="dtmf") @Nullable public RTCDTMFSender dtmf()
@JsProperty(name="track") @Nullable public MediaStreamTrack track()
@JsProperty(name="transport") @Nullable public RTCDtlsTransport transport()
@Nullable public static RTCRtpCapabilities getCapabilities(@Nonnull java.lang.String kind)
@Nonnull public RTCRtpSendParameters getParameters()
@Nonnull public Promise<RTCStatsReport> getStats()
@Nonnull public Promise<java.lang.Void> replaceTrack(@Nullable MediaStreamTrack withTrack)
@Nonnull public Promise<java.lang.Void> setParameters(@Nonnull RTCRtpSendParameters parameters)
public void setStreams(@Nonnull
MediaStream... streams)