Remote Playback API
Checking compatibility...
Control media playback on remote devices like TVs, projectors, or speakers. Perfect for creating cast-like functionality in web applications.
This API requires compatible remote playback devices (e.g., Chromecast) to be available on your network. Some features may not work without proper device support.
Device Availability
Find available casting devices on your network. This example shows how to detect when compatible TVs, speakers, or other playback devices are available for connection.
=
=
=
=
=
=
Output
Click Run to see output...
Watch State Changes
Monitor the connection status with remote devices. This example demonstrates how to detect when a connection is being established, successfully connected, or disconnected from a remote device.
=
=
=
=
=
=
Output
Click Run to see output...
Control Playback
Create custom controls for media playing on remote devices. This example shows how to build a user interface that works seamlessly whether the media is playing locally or on a connected TV or speaker.
=
=
=
=
=
=
Output
Click Run to see output...