RTCTrackEvent
The WebRTC API interface RTCTrackEvent
represents the RTCPeerConnection.track_event event, which is sent when a new MediaStreamTrack is added to an RTCRtpReceiver which is part of the RTCPeerConnection.
Properties
The read-only receiver
property of the RTCTrackEvent interface indicates the RTCRtpReceiver which is used to receive data containing media for the RTCTrackEvent.track to which the event refers.
The WebRTC API interface RTCTrackEvent's read-only streams
property specifies an array of MediaStream objects, one for each of the streams that comprise the track being added to the RTCPeerConnection.
The WebRTC API interface RTCTrackEvent's read-only track
property specifies the MediaStreamTrack that has been added to the RTCPeerConnection.
The WebRTC API interface RTCTrackEvent's read-only transceiver
property indicates the RTCRtpTransceiver affiliated with the event's RTCTrackEvent.track.