Back to Content

RTCRtpSender: track property

files/en-us/web/api/rtcrtpsender/track/index.md

latest488 B
Original Source

{{APIRef("WebRTC")}}

The track read-only property of the {{domxref("RTCRtpSender")}} interface returns the {{domxref("MediaStreamTrack")}} which is being handled by the RTCRtpSender.

Value

A {{domxref("MediaStreamTrack")}} object representing the media associated with the RTCRtpSender. If no track is associated with the sender, this value is null, in which case the sender transmits nothing.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}