RTCRtpSender: track property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The track
read-only property of
the RTCRtpSender
interface returns the MediaStreamTrack
which is being handled by the RTCRtpSender
.
Value
A 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
Specification |
---|
WebRTC: Real-Time Communication in Browsers # dom-rtcrtpsender-track |
Browser compatibility
BCD tables only load in the browser