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

Specification
Remote Playback API
# the-disableremoteplayback-attribute

Browser compatibility

BCD tables only load in the browser

See also

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