Liking cljdoc? Tell your friends :D

rtc.RTCTrackEvent

The WebRTC API interface RTCTrackEvent represents the track event, is sent when a new media.MediaStreamTrack is added to an rtc.RTCRtpReceiver is part of the rtc.RTCPeerConnection.

The WebRTC API interface RTCTrackEvent represents the track event,
is sent when a new `media.MediaStreamTrack` is added to an `rtc.RTCRtpReceiver`
is part of the `rtc.RTCPeerConnection`.
raw docstring

constructorcljs

Constructor.

The RTCTrackEvent() constructor creates and returns a new rtc.RTCTrackEvent object, configured to describe the track which has been added to the rtc.RTCPeerConnection.

eventInfo An object based on the rtc.RTCTrackEventInit dictionary, providing information about the track which has been added to the rtc.RTCPeerConnection. This object has the following properties: web.receiver The rtc.RTCRtpReceiver which is being used to receive the track's media. web.streams Optional An array of media.MediaStream objects representing each of the streams that comprise the event's corresponding track. web.track The media.MediaStreamTrack the event is associated with. web.transceiver The 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 `rtc.RTCTrackEvent` object, configured to describe the track which has been added to the `rtc.RTCPeerConnection`.

eventInfo
An object based on the `rtc.RTCTrackEventInit` dictionary, providing information about the track which has been added to the `rtc.RTCPeerConnection`. This object has the following properties:
`web.receiver`
The `rtc.RTCRtpReceiver` which is being used to receive the track's media.
`web.streams` Optional
An array of `media.MediaStream` objects representing each of the streams that comprise the event's corresponding track.
`web.track`
The `media.MediaStreamTrack` the event is associated with.
`web.transceiver`
The `rtc.RTCRtpTransceiver` associated with the event.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/RTCTrackEvent`
sourceraw docstring

receivercljs

(receiver this)

Property.

The read-only receiver property of the rtc.RTCTrackEvent interface the rtc.RTCRtpReceiver which is used to receive data containing for the web.track to which the event refers.

var rtpReceiver = trackEvent.receiver;

See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver

Property.

The read-only receiver property of the `rtc.RTCTrackEvent` interface
the `rtc.RTCRtpReceiver` which is used to receive data containing
for the `web.track` to which the event refers.

`var rtpReceiver = trackEvent.receiver;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver`
sourceraw docstring

set-transceiver!cljs

(set-transceiver! this val)

Property.

The WebRTC API interface rtc.RTCTrackEvent's read-only transceiver indicates the rtc.RTCRtpTransceiver affiliated with the event's

var rtpTransceiver = trackEvent.transceiver;

See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver

Property.

The WebRTC API interface `rtc.RTCTrackEvent`'s read-only transceiver
indicates the `rtc.RTCRtpTransceiver` affiliated with the event's

`var rtpTransceiver = trackEvent.transceiver;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver`
sourceraw docstring

streamscljs

(streams this)

Property.

The WebRTC API interface rtc.RTCTrackEvent's read-only streams specifies an array of media.MediaStream objects, one for each the streams that comprise the track being added to the rtc.RTCPeerConnection.

var streams = trackEvent.streams;

See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams

Property.

The WebRTC API interface `rtc.RTCTrackEvent`'s read-only streams
specifies an array of `media.MediaStream` objects, one for each
the streams that comprise the track being added to the `rtc.RTCPeerConnection`.

`var streams = trackEvent.streams;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams`
sourceraw docstring

trackcljs

(track this)

Property.

The WebRTC API interface rtc.RTCTrackEvent's read-only track specifies the media.MediaStreamTrack that has been added to rtc.RTCPeerConnection.

var track = trackEvent.track;

See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track

Property.

The WebRTC API interface `rtc.RTCTrackEvent`'s read-only track
specifies the `media.MediaStreamTrack` that has been added to
`rtc.RTCPeerConnection`.

`var track = trackEvent.track;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track`
sourceraw docstring

transceivercljs

(transceiver this)

Property.

The WebRTC API interface rtc.RTCTrackEvent's read-only transceiver indicates the rtc.RTCRtpTransceiver affiliated with the event's

var rtpTransceiver = trackEvent.transceiver;

See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver

Property.

The WebRTC API interface `rtc.RTCTrackEvent`'s read-only transceiver
indicates the `rtc.RTCRtpTransceiver` affiliated with the event's

`var rtpTransceiver = trackEvent.transceiver;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close