PWA Casting Demo

This demo demonstrates how to cast videos from a website or PWA to an external screen using the Presentation API.

Cast Logo

Demo

  1. Install the app on your computer
  2. Make sure you have another screen connected to your main display, then press the button below to start casting.
  3. Tap one of the demo videos below to cast it on your other screen.

How it works

This barebones demo uses the Presentation API to cast our /sample-cast-page.html page, which contains only a single video element. When you start casting, the browser will open a new window displaying that page. Clicking one of the demo video buttons above sends a message to the target page, instructing it to set the video element's source to the URL associated with the button you tapped.

Browser support

The Presentation API is supported on all recents version of desktop Chrome and Edge. This API is also available on Android with Chrome.

API

window.PresentationRequest

Code

Links & Documentation

Your app here

Ready to generate your PWA?

Try our PWA toolkit free of charge and without limits for 14 days. No credit card required.

Generate PWA See plans