xref: /aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/demos/README.md (revision 30877f796caf59d855b10b687a5d6b3918d765cb)
1# ExoPlayer demos #
2
3This directory contains applications that demonstrate how to use ExoPlayer.
4Browse the individual demos and their READMEs to learn more.
5
6## Running a demo ##
7
8### From Android Studio ###
9
10* File -> New -> Import Project -> Specify the root ExoPlayer folder.
11* Choose the demo from the run configuration dropdown list.
12* Click Run.
13
14### Using gradle from the command line: ###
15
16* Open a Terminal window at the root ExoPlayer folder.
17* Run `./gradlew projects` to show all projects. Demo projects start with `demo`.
18* Run `./gradlew :<demo name>:tasks` to view the list of available tasks for
19the demo project. Choose an install option from the `Install tasks` section.
20* Run `./gradlew :<demo name>:<install task>`.
21
22**Example**:
23
24`./gradlew :demo:installNoDecoderExtensionsDebug` installs the main ExoPlayer
25demo app in debug mode with no decoder extensions.
26