MediaStreamTrack.remote

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

JavaScript
var bool ​= track.remote;

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'MediaStreamTrack.remote' in that specification.
Editor's Draft Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 48.0 (Yes) Not supported (Yes) ?
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support Not supported 48.0 (Yes) Not supported (Yes) ? 48.0

See also

 

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/mediastreamtrack/remote

MediaStreamTrack Property Read-only Reference WebRTC