Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.google
Application BasicMediaRouter: Update dependencies Oct 2, 2019
gradle/wrapper BasicMediaRouter: Update dependencies Oct 2, 2019
README.md Adds BasicMediaRouter sample. Sep 23, 2019
build.gradle BasicMediaRouter: Update dependencies Oct 2, 2019
gradle.properties BasicMediaRouter: Update dependencies Oct 2, 2019
gradlew Adds BasicMediaRouter sample. Sep 23, 2019
gradlew.bat Adds BasicMediaRouter sample. Sep 23, 2019
settings.gradle Adds BasicMediaRouter sample. Sep 23, 2019

README.md

Android BasicMediaRouter Sample

This sample demonstrates the use of the MediaRouter API to display content on a secondary display. Use the "Media Route Action Item" in the ActionBar to select an output device. If your device supports Miracast wireless displays, you may need to enable "Wireless Display" functionality in the system settings. Secondary screen simulation can also be enabled from the "Developer Options".

Once connected, use the "Change Color" button to change the background color of the secondary screen.

Pre-requisites

  • Android SDK 28
  • Android Build Tools v28.0.3
  • Android Support Repository

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

Support

If you've found an error in this sample, please file an issue: https://github.com/android/media

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.

You can’t perform that action at this time.