The Google Cast SDK includes API libraries and sample application code to help you cast your applications to the big screen. These APIs are documented in the API references, and the sample code is discussed in the Sender Applications and Receiver Applications overviews.
Here's what you need to build a Cast app.
- A sender application, written for the Android, iOS, or Chrome platform which uses the following Cast APIs:
- A receiver application that handles communication between the sender app and the receiver device. You have the following options:
- The Default Media Receiver presented with the Google Cast branding and styling.
- The Styled Media Receiver for which you can develop the styles and branding. See Styled Media Receiver.
- A custom receiver, as described in Custom receiver that implements the Receiver API and handles custom messages from your sender app; it may also interface with the media player types provided through the Media Player Library.
- First, get set up for development:
- Install your Chromecast device and run through the Chromecast Setup instructions.
- Run the Chromecast app on your sender device, following the prompts as directed.
- Under Privacy, check the box to Send this Chromecast's serial number when checking for updates.
You must select this option in order to enable your receiver device for development.
- Review the User Experience Guidelines showing you how to implement a UI that is consistent with other Cast apps.
- Download the API libraries and sample apps.
- Register your application.
You will receive an app ID to include with your API calls.
- Develop your app.