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.
trackEvent = new RTCTrackEvent(eventInfo);
- An object based on the
RTCTrackEventInitdictionary, providing information about the track which has been added to the
RTCPeerConnection. This object has 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.
MediaStreamTrackthe event is associated with.
RTCRtpTransceiverassociated with the event.
RTCTrackEvent describing a track which has been added to the
No specification found
No specification data found for
Check for problems with this page or contribute a missing
spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.