Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The Remote Playback API extends the HTMLMediaElement to enable the control of media played on a remote device.
Remote playback devices are connected devices such as TVs, projectors, or speakers. The API takes into account wired devices connected via HDMI or DVI, and wireless devices, for example Chromecast or AirPlay.
The API enables a page, which has a media element such as a video or audio file, to initiate and control playback of that media on a connected remote device. For example, playing a video on a connected TV.
Note: Safari for iOS has some APIs which enable remote playback on AirPlay. Details of these can be found in the Safari 9.0 release notes.
Android versions of Firefox and Chrome also contain some remote playback features. These devices will show a Cast button if there is a Cast device available in the local network.
Allows the page to detect availability of remote playback devices, then connect to and control playing on these devices.
A boolean that sets or returns the remote playback state, indicating whether the media element is allowed to have a remote playback UI.
HTMLMediaElement.remote Read onlyReturn a RemotePlayback object instance associated with the media element.
The following example demonstrates a player with custom controls that supports remote playback. Initially the button used to select a device is hidden.
The RemotePlayback.watchAvailability() method watches for available remote playback devices. If a device is available, use the callback to show the button.
| Remote Playback API |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Nov 17, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.