In general, you won't need to use this constructor, as
RTCTrackEvent objects are created by WebRTC and delivered to your
RTCPeerConnector's event listener 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.|
No compatibility data found. Please contribute data for "api.RTCTrackEvent.RTCTrackEvent" (depth: 1) to the MDN compatibility data repository.