The HTMLMediaElement.disableRemotePlayback property determines whether the media element is allowed to have a remote playback UI.
var remotePlaybackState = element.disableRemotePlayback();
A Boolean indicating whether the media element may have a remote playback UI.
var obj = document.createElement('audio');
obj.disableRemotePlayback = true; | Specification | Status | Comment |
|---|---|---|
| HTML5 The definition of 'disableRemotePlayback' in that specification. | Recommendation | Initial definition. |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 49 | Yes | 20 | 9 | Yes | Yes |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | 49 | 49 | Yes | 15 | Yes | Yes | ? |
HTMLMediaElement.
© 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/HTMLMediaElement/disableRemotePlayback