Remote Playback
Lets a video or audio element play on a nearby cast or AirPlay device.
In one line
Can play a video or audio on a cast or AirPlay device you choose
Lets a video or audio element play on a nearby cast or AirPlay device.
Shows whether cast targets exist; the person chooses where playback goes.
What it can and can't do
What the user does: You tap the cast or AirPlay icon on the video and pick a device.
It can
- Show the list of cast or AirPlay devices
- Play the video or audio on the one you pick
- Pause, play or stop it from the page
It cannot
- Pick a device for you
- See all devices on your network
- Cast after you pick Stop
- Cast to a device you did not pick
How it differs between platforms: Safari uses AirPlay and Chrome uses Cast. Firefox has only partial support.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 121 | 2024-01-23 | None |
| Edge | Supported | 121 | 2024-01-25 | None |
| Firefox | Not supported | Not available | Not listed | None |
| Safari | Supported | 13.1 | 2020-03-24 | None |
| Safari on iPhone | Supported | 13.4 | 2020-03-24 | None |
| Chrome on Android | Supported | 56 | 2017-02-01 | None |
| Samsung Internet | Supported | 6.0 | 2017-08-23 | None |
How a site asks for it
| API | video.remote.prompt(), video.remote.watchAvailability(cb), remote.state |
| Browser compat keys | api.RemotePlayback |
| How access is granted | picker |
| What the user sees | Browser cast or AirPlay chooser |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | Yes |
| How long it lasts | Per origin |
| How to take it back | Site settings |
| Inside an iframe | Same as top level; cross-origin iframes need a permissions policy where listed |
Typical flow
- Call the API
- Browser applies its access rules
- Page receives the result
Data you get
What comes back: Lets a video or audio element play on a nearby cast or AirPlay device.
Shape: object
How often: on demand
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
state | enum | None | connecting, connected, disconnected | Not listed |
availability | boolean | None | true or false | Not listed |
Technical limits
- Chooser needs a gesture
- Only audio or video elements
- Firefox does not ship it
The story
What it is
A video player can send its picture to a nearby TV or speaker.
For you
You tap the cast or AirPlay icon in a video, pick a device and the video continues on the TV.
For makers
Makers keep the viewing going on a bigger screen without leaving the page. It supports Chromecast and AirPlay with one button.
Where you see it
| Type | Example | Apps |
|---|---|---|
| video | You send a YouTube video from your phone to the living room TV. | YouTube, Netflix |
| music | You play a web music player through a smart speaker. | Spotify web |
| live | You watch a live match on your TV from a stream you opened on a laptop. | DAZN |
| education | A lecture video is sent to a classroom screen. | None named |
| ads | An ad plays on the TV before your video, and it is counted as watched. | None named |
| smart-home | A baby camera page sends live video to a kitchen display. | None named |
Risks
- Casting by mistake
- Reveals nearby devices
What the platform says
- Mozilla: Remote Playback API. MDN says it lets a page play a video or audio on a remote device like a TV or speaker.
Good uses and abuse
Legitimate uses
- Media sites
Known abuse
- Network presence signal
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 1 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2016-05, Chrome 56: Chrome Android
- 2020-03, Safari 13.1: Safari uses AirPlay
- 2023-01, Chrome 121: Desktop Chrome
Sources
How well checked: Checked against real behavior.