Baseline Widely available
The RTCTrackEvent()
constructor creates and returns a new RTCTrackEvent
object, configured to describe the track which has been added to the RTCPeerConnection
.
In general, you won't need to use this constructor, as RTCTrackEvent
objects are created by WebRTC and delivered to your RTCPeerConnection
's ontrack
event handler as appropriate.
new RTCTrackEvent(type, options)
Parameters
type
A string with the name of the event. It is case-sensitive and browsers always set it to track
.
options
An object that, in addition of the properties defined in Event()
, can have the following properties:
receiver
The RTCRtpReceiver
which is being used to receive the track's media.
streams
Optional
An array of MediaStream
objects representing each of the streams that comprise the event's corresponding track. It defaults to an empty array.
track
The MediaStreamTrack
the event is associated with.
transceiver
The RTCRtpTransceiver
associated with the event.
A new RTCTrackEvent
describing a track which has been added to the RTCPeerConnection
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4