HTMLMediaElement: disableRemotePlayback property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
ThedisableRemotePlayback property of theHTMLMediaElement interface determines whether the media element is allowed to have a remote playback UI.
In this article
Value
A boolean value indicating whether the media element may have a remote playbackUI. (false means "not disabled", which means "enabled")
Example
js
const obj = document.createElement("audio");obj.disableRemotePlayback = true;Specifications
| Specification |
|---|
| Remote Playback API> # the-disableremoteplayback-attribute> |