CastVideos-android application shows how to cast videos from an android device in a way that is fully compliant with the Design Checklist.
This is a reference sender app to be used as the starting point for your Android sender app
Here is the list of other reference apps:
- CastCompanionLibrary-android: can be downloaded here at https://github.com/googlecast/CastCompanionLibrary-android
- ShowcaseView: can be downloaded at https://github.com/amlcurran/ShowcaseView (see change list 1.2 for details)
- Get a Chromecast device and set it up
- [Optional] Register an application on the Developers Console (http://cast.google.com/publish). The easiest would be to use the Styled Media Receiver option there. You will get an App ID when you finish registering your application. This project uses a published Application ID that can be used to run the app without using your own ID but if you need to do any console debugging, you would need to have your own ID.
- Setup the project dependencies
- For Eclipse: you need to setup the above dependencies manually. For ShowcaseView Library, see the additional comments below in the Change List 1.2.
- For Android Studio: make sure you are running at least version 0.9.1 (it may work on earlier versions). Dependencies are
setup in the build.gradle file and the settings.gradle; it assumes you have cloned the CastCompanionLibrary-android project
into a parallel project named "CastCompanionLibrary". If you want to change the name, make sure it gets updated in both
settings.gradle and build.gradle. Quick steps to clone and compile the app from command line (on a Linux or Mac) are:
- $ git clone https://github.com/googlecast/CastVideos-android.git CastVideos
- $ git clone https://github.com/googlecast/CastCompanionLibrary-android.git CastCompanionLibrary
- $ cd CastVideos
- $ ./gradlew build
- Compile and deploy to your Android device.
- This sample includes a published app id in the res/values/strings.xml file so the project can be built and run without a need to register an app id. If you want to use your own receiver (which is required if you need to debug the receiver), update "app_id" in that file with your own app id.
- Cast Developer Documentation
- Design Checklist
- If you find any issues with this library, please open a bug here on GitHub
- Question are answered on StackOverflow
Please read and follow the steps in the CONTRIBUTING.md
See LICENSE
Google Cast Developers Community on Google+ http://goo.gl/TPLDxj
1.5
- Adapting to the CCL v1.12
- Fixing some typos
1.4
- Added support for Android Lollipop. Toolbar has now replaced ActionBar in the project.
- Updated android Studio support and gradle scripts and wrapper to gradle 2.1, gradle tools plugin 0.14 and Android Studio 0.9.1
1.3
- Added support for Closed Captions based on enhancements made in CCL. Three new videos have been added to the beginning of the list of videos; these three include captions.
1.2
- Updated the build.gradle to work with the latest version of the Android Studio Beta (0.8.1). You may need to upgrade your Android Studio to be abe to work with this project.
- Added a first-time introductory UI for the Cast Button. This is accomplished by using [ShowcaseView project] (https://github.com/amlcurran/ShowcaseView). If you are using Eclipse, you would need to get the project and include that as a library project yourself. For Android Studio, an AAR package of the library is included.
1.1
- Updated the Cast button images to match the new style
- Addressed a couple of potential leaks