W3cubDocs

/Web APIs

HTMLMediaElement: disableRemotePlayback property

The HTMLMediaElement.disableRemotePlayback property determines whether the media element is allowed to have a remote playback UI.

Value

A boolean value indicating whether the media element may have a remote playback UI. (false means "not disabled", which means "enabled")

Example

js

const obj = document.createElement("audio");
obj.disableRemotePlayback = true;

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
disableRemotePlayback 49 79 No No 36 13.1 No 49 No 36 13 5.0

See also

  • HTMLMediaElement: Interface used to define the HTMLMediaElement.disableRemotePlayback property

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/disableRemotePlayback