In general, you won't need to use this constructor, as
RTCTrackEvent objects are created by WebRTC and delivered to your
ontrack event handler as appropriate.
trackEvent = new RTCTrackEvent(eventInfo);
- An object based on the
RTCTrackEventInit(en-US) dictionary, 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
|Candidate Recommendation||Initial specification.|
BCD tables only load in the browser