The HTMLMediaElement.disableRemotePlayback
property determines whether the media element is allowed to have a remote playback UI.
Syntax
var remotePlaybackDisabled = element.disableRemotePlayback;
Value
A Boolean
indicating whether the media element may have a remote playback UI. (false means "not disabled", which means "enabled")
Example
var obj = document.createElement('audio'); obj.disableRemotePlayback = true;
Specifications
Specification | Status | Comment |
Remote Playback APIThe definition of 'disableRemotePlayback' 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
disableRemotePlayback
|
Chrome
Full support 49 |
Edge
Full support 12 |
Firefox
Full support 20 |
IE
Full support 9 |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support 49 |
Chrome Android
Full support 49 |
Firefox Android
Full support 15 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 5.0 |
Legend
- Full support
- Full support
See also
- The interface defining it,
HTMLMediaElement
.
HTMLMediaElement.disableRemotePlayback by Mozilla Contributors is licensed under CC-BY-SA 2.5.