@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public interface RTCTrackEventInit
extends EventInit
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RTCTrackEventInit.Builder
The WebRTC API's RTCTrackEventInit dictionary is used to provide information describing an RTCTrackEvent when instantiating a new track event using new RTCTrackEvent().
|
| Modifier and Type | Method and Description |
|---|---|
static RTCTrackEventInit.Builder |
create(RTCRtpReceiver receiver,
MediaStreamTrack track,
RTCRtpTransceiver transceiver) |
RTCRtpReceiver |
receiver()
The RTCTrackEventInit dictionary's receiver property specifies the RTCRtpReceiver associated with the event.
|
void |
setReceiver(RTCRtpReceiver receiver)
The RTCTrackEventInit dictionary's receiver property specifies the RTCRtpReceiver associated with the event.
|
void |
setStreams(JsArray<MediaStream> streams)
The RTCTrackEventInit dictionary's optional streams property provides an array containing a MediaStream object for each of the streams associated with the event's track.
|
default void |
setStreams(MediaStream... streams)
The RTCTrackEventInit dictionary's optional streams property provides an array containing a MediaStream object for each of the streams associated with the event's track.
|
void |
setTrack(MediaStreamTrack track)
The RTCTrackEventInit dictionary's track property specifies the MediaStreamTrack associated with the track event.
|
void |
setTransceiver(RTCRtpTransceiver transceiver) |
JsArray<MediaStream> |
streams()
The RTCTrackEventInit dictionary's optional streams property provides an array containing a MediaStream object for each of the streams associated with the event's track.
|
MediaStreamTrack |
track()
The RTCTrackEventInit dictionary's track property specifies the MediaStreamTrack associated with the track event.
|
RTCRtpTransceiver |
transceiver() |
bubbles, cancelable, composed, create, setBubbles, setCancelable, setComposed@JsOverlay @Nonnull static RTCTrackEventInit.Builder create(@Nonnull RTCRtpReceiver receiver, @Nonnull MediaStreamTrack track, @Nonnull RTCRtpTransceiver transceiver)
@JsProperty(name="receiver") @Nonnull RTCRtpReceiver receiver()
@JsProperty
void setReceiver(@Nonnull
RTCRtpReceiver receiver)
@JsProperty(name="streams") JsArray<MediaStream> streams()
@JsProperty
void setStreams(@Nonnull
JsArray<MediaStream> streams)
@JsOverlay
default void setStreams(@Nonnull
MediaStream... streams)
@JsProperty(name="track") @Nonnull MediaStreamTrack track()
@JsProperty
void setTrack(@Nonnull
MediaStreamTrack track)
@JsProperty(name="transceiver") @Nonnull RTCRtpTransceiver transceiver()
@JsProperty
void setTransceiver(@Nonnull
RTCRtpTransceiver transceiver)