In general, you won't need to use this constructor, as
objects are created by WebRTC and delivered to your
ontrack event handler as appropriate.
new RTCTrackEvent(type, options)
A string with the name of the event. It is case-sensitive and browsers always set it to
An object that, in addition of the properties defined in
Event(), can have the following properties:
RTCRtpReceiverwhich is being used to receive the track's media.
An array of
MediaStreamobjects representing each of the streams that comprise the event's corresponding track. It defaults to an empty array.
MediaStreamTrackthe event is associated with.
RTCRtpTransceiverassociated with the event.
RTCTrackEvent describing a track which has been added to the
|WebRTC: Real-Time Communication in Browsers |
BCD tables only load in the browser