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