Back to Content

HTMLMediaElement: disableRemotePlayback property

files/en-us/web/api/htmlmediaelement/disableremoteplayback/index.md

latest816 B
Original Source

{{APIRef("Remote Playback API")}}

The disableRemotePlayback property of the {{domxref("HTMLMediaElement")}} interface 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

{{Specifications}}

Browser compatibility

{{Compat}}

See also