Skip to content

Commit

Permalink
Adding instructions on how to build and run ExoPlayer demo apps
Browse files Browse the repository at this point in the history
Issue:#7338
PiperOrigin-RevId: 312470913
  • Loading branch information
ojw28 authored and andrewlewis committed May 29, 2020
1 parent 1d8dd76 commit 5927d03
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
21 changes: 21 additions & 0 deletions demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,24 @@

This directory contains applications that demonstrate how to use ExoPlayer.
Browse the individual demos and their READMEs to learn more.

## Running a demo ##

### From Android Studio ###

* File -> New -> Import Project -> Specify the root ExoPlayer folder.
* Choose the demo from the run configuration dropdown list.
* Click Run.

### Using gradle from the command line: ###

* Open a Terminal window at the root ExoPlayer folder.
* Run `./gradlew projects` to show all projects. Demo projects start with `demo`.
* Run `./gradlew :<demo name>:tasks` to view the list of available tasks for
the demo project. Choose an install option from the `Install tasks` section.
* Run `./gradlew :<demo name>:<install task>`.

**Example**:

`./gradlew :demo:installNoExtensionsDebug` installs the main ExoPlayer demo app
in debug mode with no extensions.
3 changes: 3 additions & 0 deletions demos/cast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

This folder contains a demo application that showcases ExoPlayer integration
with Google Cast.

Please see the [demos README](../README.md) for instructions on how to build and
run this demo.
3 changes: 3 additions & 0 deletions demos/gl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ drawn using an Android canvas, and includes the current frame's presentation
timestamp, to show how to get the timestamp of the frame currently in the
off-screen surface texture.

Please see the [demos README](../README.md) for instructions on how to build and
run this demo.

[GLSurfaceView]: https://developer.android.com/reference/android/opengl/GLSurfaceView
3 changes: 3 additions & 0 deletions demos/main/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
This is the main ExoPlayer demo application. It uses ExoPlayer to play a number
of test streams. It can be used as a starting point or reference project when
developing other applications that make use of the ExoPlayer library.

Please see the [demos README](../README.md) for instructions on how to build and
run this demo.
3 changes: 3 additions & 0 deletions demos/surface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ called, and because you can move output off-screen easily (`setOutputSurface`
can't take a `null` surface, so the player has to use a `DummySurface`, which
doesn't handle protected output on all devices).

Please see the [demos README](../README.md) for instructions on how to build and
run this demo.

[SurfaceControl]: https://developer.android.com/reference/android/view/SurfaceControl

0 comments on commit 5927d03

Please sign in to comment.