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
|WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCTrackEvent()' in that specification.
|Candidate Recommendation||Initial specification.|