This is a Android sample game using the Google Cast Game Manager API. The Google Cast Game Manager allows native Android, iOS, and Chrome games to connect with a Google Cast device and have communication and synchronization of player and game states across devices.
- google-play-services_lib library from Android SDK (at least version 7.5.71)
- android-support-v7-appcompat (version 21 or above)
- android-support-v7-mediarouter (version 20 or above)
- Check out code from GitHub and go to the sample folder under
receiver
with index.html. - Host the receiver files on a web server.
- Create a new app ID for your receiver sample using the Google Cast SDK Developer Console: https://cast.google.com/publish/
- Update app IDs in the strings.xml resource file.
- Check out code from GitHub and go to a sample subfolder under
game-done
with abuild.gradle
file. - In Android Studio, select
Open Existing Android Studio Project
and select thebuild.gradle
file. - You may need to provide the path to your local gradle installation. You can select the gradle binary inside your Android Studio installation directory.
- You can now run the app normally from within Android Studio, or use
gradlew build
from the command line.
If you prefer to use your local gradle installation to generate the gradle wrapper, typegradle wrapper
from the project directory.
- Cast APIs
- Game Manager API
- Design Checklist
- Cast Game UX Guidelines (PDF)
- If you find any issues, please open a bug here on GitHub.
Please read and follow the steps in the CONTRIBUTING.md
See LICENSE
Google Cast Developers Community on Google+ http://goo.gl/TPLDxj