/OpenCast

Mac framework for working with Google Cast devices

Primary LanguageC++Apache License 2.0Apache-2.0

OpenCast is a Mac/iOS framework for communicating with Google Cast devices. It ships with the same headers as the official Google Cast iOS framework and aims to be fully API-compatible with version 2 of the official framework.

Use Cases

  • Developing Mac apps that interact with Google Cast devices (e.g., Chromecast)
  • iOS/Mac product families that want to support Google Cast
  • Complex iOS sender applications for Google Cast that may not be possible with the official framework

Examples

See the Samples/ directory for example code. The CastCommander project is an example of a remote control-style Mac application that uses OpenCast.

Feature Parity

Implemented

  • Scan for devices
  • Connect to device
  • Launch custom receiver application
  • Launch "default" media receiver application
    • Load media from URL
    • Play, pause, stop
    • Seek
  • Stop receiver application
  • Change volume, mute
  • Respond to heartbeat messages

Not yet implemented

  • Connect to existing session
  • Launch application {even, except} if there's an existing session
  • Pass custom data (customData parameters) to receiver application
  • API changes in version 3