Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The MediaStreamTrack.remote
read-only property allows Javascript to know whether a WebRTC MediaStreamTrack is from a remote source or a local one. It returns a Boolean
with a value of true
if the track is sourced remotely (that is, sourced by an RTCPeerConnection), or false
if it is sourced locally.
Syntax
var bool = track.remote;
Specifications
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStreamTrack.remote' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
The compatibility table on 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
remote | Chrome No support 48 — 59 | Edge Full support 12 | Firefox Full support Yes | IE No support No | Opera No support 35 — 46 | Safari ? | WebView Android No support 48 — 59 | Chrome Android No support 48 — 59 | Firefox Android Full support Yes | Opera Android No support 35 — 43 | Safari iOS ? | Samsung Internet Android Full support 5.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Non-standard. Expect poor cross-browser support.
- Non-standard. Expect poor cross-browser support.
- Deprecated. Not for use in new websites.
- Deprecated. Not for use in new websites.
See also