RTCTrackEvent
The corresponding JS API docs is here RTCTrackEvent.
RTCTrackEvent is an interface in the WebRTC API that represents track events. When a new MediaStreamTrack (such as an audio or video track) is added to the RTCRtpReceiver (the object responsible for receiving media data) of RTCPeerConnection, this event is triggered.
Properties#
track:This property returns theMediaStreamTrackobject that has been added. This represents the actual media track (audio or video) that is now available for use.receiver:This property returns theRTCRtpReceiverobject associated with the event. TheRTCRtpReceiveris responsible for receiving the media track.streams:This property returns an array ofMediaStreamobjects associated with the track. A single track can be part of multiple streams.transceiver:This property returns theRTCRtpTransceiverobject associated with the event. The transceiver manages the sending and receiving of media for a specific track.