Sample Apps

  • Explore working sample apps and codelabs to learn Google Cast app development.

  • Reference apps showcase best practices and compliance with the Google Cast Design Checklist.

  • Discover video and audio apps demonstrating diverse Cast functionalities.

  • Utilize provided source code and codelabs for hands-on learning and app building.

  • Find various sample apps for platforms including Android, iOS, Web, and Android TV.

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

Codelabs provide a guided, hands-on coding experience with step-by-step instructions that take you through the process of either building an app that uses certain features of the Cast API or enabling an existing app to use the Cast API.

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.

CastReceiver

Details
PlatformReceiver, MPL
LanguagesJavaScript, HTML, CSS
Source Codegithub.com/googlecast/CastReceiver
Codelabdevelopers.google.com/cast/codelabs/cast-receiver/

CastAndroidTvReceiver

Details
PlatformAndroid
LanguagesAndroid
Source Codegithub.com/googlecast/CastAndroidTvReceiver
Codelabdevelopers.google.com/cast/codelabs/cast-connect-atv/

CastVideos-android

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

CastVideos-ios

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

CastVideos-chrome

Details
PlatformWeb
LanguagesJavaScript, HTML, CSS
Source Codegithub.com/googlecast/CastVideos-chrome
Codelabdevelopers.google.com/cast/codelabs/cast-videos-chrome/

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-ios

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

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/