The RTCTrackEvent()
constructor creates and returns a new RTCTrackEvent
object, configured to describe the track which has been added to the RTCPeerConnection
.
In general, you won't need to use this constructor, as RTCTrackEvent
objects are created by WebRTC and delivered to your RTCPeerConnector
's ontrack
event handler as appropriate.