You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reference Android Sender w/ Framework API: CastVideos-android application shows how to cast videos from an Android device that is fully compliant with the Cast Design Checklist.
[Optional] Register an application on the Developers Console https://cast.google.com/publish.
The easiest would be to use the Styled Media Receiver option. 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.
Import the project into Android Studio or use gradle to build the project.
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.
Automated UI Testing on Cast Sender App
This Google Cast demo app also includes sample Cast test cases in androidTest/.
It is recommended to implement and run automated testing for your Android sender app to ensure the best Cast experience for users.
How to run test cases
Update cast_test_target_device in [res/values/cast_test.xml] with your Google Cast device name.
Connect to a physical Android device and make sure your device is unlocked.
Reference Android Sender w/ Framework API: CastVideos-android application shows how to cast videos from an Android device that is fully compliant with the Cast Design Checklist.