RTCRtpSender.track
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 |
---|
WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtcrtpsender-track |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
track |
64 |
12 |
34 |
No |
51 |
11 |
64 |
64 |
34 |
47 |
11 |
9.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/track