Sample Apps

Sample apps are examples of working code that you can browse, run, and learn from to get started developing your own Google Cast app.

Tutorials are sample apps with step-by-step instructions that take you through the process of enabling an existing Android or iOS video app to use a Google Cast device to cast content to a TV.

Reference apps

The reference apps listed here are those that comply with the Google Cast Design Checklist and follow Google Cast development best practices. Use these apps as a starting point when developing your app for Google Cast.

CastVideos-android

Details
PlatformAndroid
LanguagesAndroid
Source Codegithub.com/googlecast/CastVideos-android
Tutorialcodelabs.developers.google.com/codelabs/cast-videos-android/

CastVideos-ios

Details
PlatformiOS
LanguagesSwift, Objective-C
Source Codegithub.com/googlecast/CastVideos-ios
Tutorialcodelabs.developers.google.com/codelabs/cast-videos-ios/

CastVideos-chrome

Details
PlatformChrome
LanguagesJavaScript, HTML, CSS
Source Codegithub.com/googlecast/CastVideos-chrome

CastReceiver

Details
PlatformReceiver, MPL
LanguagesHTML
Source Codegithub.com/googlecast/CastReceiver

Video apps

The video apps listed here show how to cast videos from a sender using the CAF Sender SDK. For simplicity, these apps are not fully compliant with the UX Checklist.

CastHelloVideo-chrome

Details
PlatformChrome
LanguagesJavaScript, HTML, CSS
Source Codegithub.com/googlecast/CastHelloVideo-chrome

CastHelloVideo-ios

Details
PlatformiOS
LanguagesObjective-C, Swift
Source Codegithub.com/googlecast/CastHelloVideo-ios

CastVideos-chrome-samples

These Google Cast demo apps show how to cast videos from a Chrome browser using Cast Chrome Sender SDK. They serve to demonstrate writing an HTML/JavaScript Cast sender app with various technologies including Angular and Polymer.

Details
PlatformChrome, Angular, Polymer
LanguagesJavaScript, HTML
Source Codegithub.com/googlecast/CastVideos-chrome-samples

Audio apps

The audio apps listed here show best practices for building media apps.

Android-UniversalMusicPlayer

This app works across Android devices including Auto and Wear, as well as Cast devices.

Details
PlatformAndroid
LanguagesKotlin
Source Codegithub.com/googlesamples/android-UniversalMusicPlayer/