Overview

  • cast.framework and chrome.cast are the main namespaces for the Google Cast Web Sender SDK, providing APIs for controlling Cast devices and sessions.

  • cast.framework offers a higher-level, session-oriented API, managing session lifecycle and media playback, while chrome.cast provides lower-level, imperative APIs for interacting with Cast devices.

  • Both frameworks allow you to discover and connect to Cast devices, launch Cast applications, send and receive messages, and control media playback.

  • The chrome.cast.media namespace contains specific APIs for controlling media playback, including loading media, playing, pausing, seeking, and managing volume.

  • The cast.framework.RemotePlayer and cast.framework.RemotePlayerController classes provide an interface for monitoring and controlling the media player on the receiver device.

chrome.cast.media.Media