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.
var bool = track.remote;
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStreamTrack.remote' in that specification. | Candidate Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 48 — 59 | 12 | Yes | No | 35 — 46 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 48 — 59 | 48 — 59 | Yes | Yes | 35 — 46 | ? | 5.0 |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/remote