Skip to Content
Platform.Ontology

Remote Playback

Lets a video or audio element play on a nearby cast or AirPlay device.

Asks you firstHardware and accessoriesCastingWeb browsersWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeSupported1212024-01-23None
EdgeSupported1212024-01-25None
FirefoxNot supportedNot availableNot listedNone
SafariSupported13.12020-03-24None
Safari on iPhoneSupported13.42020-03-24None
Chrome on AndroidSupported562017-02-01None
Samsung InternetSupported6.02017-08-23None

How a site asks for it

APIvideo.remote.prompt(), video.remote.watchAvailability(cb), remote.state
Browser compat keysapi.RemotePlayback
How access is grantedpicker
What the user seesBrowser cast or AirPlay chooser
Needs a secure context (HTTPS)Yes
Needs a user gestureYes
How long it lastsPer origin
How to take it backSite settings
Inside an iframeSame as top level; cross-origin iframes need a permissions policy where listed

Typical flow

  1. Call the API
  2. Browser applies its access rules
  3. 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

FieldTypeUnitRangePrecision
stateenumNoneconnecting, connected, disconnectedNot listed
availabilitybooleanNonetrue or falseNot 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

TypeExampleApps
videoYou send a YouTube video from your phone to the living room TV.YouTube, Netflix
musicYou play a web music player through a smart speaker.Spotify web
liveYou watch a live match on your TV from a stream you opened on a laptop.DAZN
educationA lecture video is sent to a classroom screen.None named
adsAn ad plays on the TV before your video, and it is counted as watched.None named
smart-homeA baby camera page sends live video to a kitchen display.None named

Risks

  • Casting by mistake
  • Reveals nearby devices

What the platform says

Good uses and abuse

Legitimate uses

  • Media sites

Known abuse

  • Network presence signal

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction1 of 5How much the user has to do
Fingerprint bitsNot ratedRough 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.

On this page