The track
read-only property of the RTCRtpSender
interface returns the MediaStreamTrack
which is being handled by the RTCRtpSender
.
Syntax
var mediaStreamTrack = rtcRtpSender.track
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 | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers The definition of 'track' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
track | Chrome Full support Yes | Edge Full support 12 | Firefox Full support 34 | IE No support No | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support 34 | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- No support
- No support