The WebRTC API interface RTCTrackEvent represents the track event,
is sent when a new web.video.MediaStreamTrack
is added to an
which is part of the web.video.RTCPeerConnection
.
The WebRTC API interface RTCTrackEvent represents the track event, is sent when a new `web.video.MediaStreamTrack` is added to an which is part of the `web.video.RTCPeerConnection`.
(constructor & args)
Constructor.
The RTCTrackEvent() constructor creates and returns a new web.rtc.RTCTrackEvent
object, configured to describe the track which has been added to the web.video.RTCPeerConnection
.
eventInfo
An object based on the web.rtc.RTCTrackEventInit
dictionary, providing information about the track which has been added to the web.video.RTCPeerConnection
. This object has the following properties:
receiver
The web.rtc.RTCRtpReceiver
which is being used to receive the track's media.
streams
Optional
An array of web.streams.MediaStream
objects representing each of the streams that comprise the event's corresponding track.
track
The web.video.MediaStreamTrack
the event is associated with.
transceiver
The web.rtc.RTCRtpTransceiver
associated with the event.
See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/RTCTrackEvent
Constructor. The RTCTrackEvent() constructor creates and returns a new `web.rtc.RTCTrackEvent` object, configured to describe the track which has been added to the `web.video.RTCPeerConnection`. eventInfo An object based on the `web.rtc.RTCTrackEventInit` dictionary, providing information about the track which has been added to the `web.video.RTCPeerConnection`. This object has the following properties: `receiver` The `web.rtc.RTCRtpReceiver` which is being used to receive the track's media. `streams` Optional An array of `web.streams.MediaStream` objects representing each of the streams that comprise the event's corresponding track. `track` The `web.video.MediaStreamTrack` the event is associated with. `transceiver` The `web.rtc.RTCRtpTransceiver` associated with the event. See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/RTCTrackEvent`
(receiver this)
Property.
[Read Only]
The read-only receiver property of the web.rtc.RTCTrackEvent
indicates the web.rtc.RTCRtpReceiver
which is used to receive
containing media for the track
to which the event refers.
var rtpReceiver = trackEvent.receiver;
See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver
Property. [Read Only] The read-only receiver property of the `web.rtc.RTCTrackEvent` indicates the `web.rtc.RTCRtpReceiver` which is used to receive containing media for the `track` to which the event refers. `var rtpReceiver = trackEvent.receiver;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver`
(streams this)
Property.
[Read Only]
The WebRTC API interface web.rtc.RTCTrackEvent
's read-only
property specifies an array of web.streams.MediaStream
objects,
for each of the streams that comprise the track being added to
web.video.RTCPeerConnection
.
var streams = trackEvent.streams;
See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams
Property. [Read Only] The WebRTC API interface `web.rtc.RTCTrackEvent`'s read-only property specifies an array of `web.streams.MediaStream` objects, for each of the streams that comprise the track being added to `web.video.RTCPeerConnection`. `var streams = trackEvent.streams;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams`
(track this)
Property.
[Read Only]
The WebRTC API interface web.rtc.RTCTrackEvent
's read-only
property specifies the web.video.MediaStreamTrack
that has
added to the web.video.RTCPeerConnection
.
var track = trackEvent.track;
See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track
Property. [Read Only] The WebRTC API interface `web.rtc.RTCTrackEvent`'s read-only property specifies the `web.video.MediaStreamTrack` that has added to the `web.video.RTCPeerConnection`. `var track = trackEvent.track;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track`
(transceiver this)
Property.
[Read Only]
The WebRTC API interface web.rtc.RTCTrackEvent
's read-only
property indicates the web.rtc.RTCRtpTransceiver
affiliated
the event's track
.
var rtpTransceiver = trackEvent.transceiver;
See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver
Property. [Read Only] The WebRTC API interface `web.rtc.RTCTrackEvent`'s read-only property indicates the `web.rtc.RTCRtpTransceiver` affiliated the event's `track`. `var rtpTransceiver = trackEvent.transceiver;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close