nisrulz / android-examples

:shipit: [Examples] Simple basic isolated apps, for budding android devs.
Apache License 2.0
1.75k stars 661 forks source link

Added a simple ExoPlayer example for video streaming #20

Closed Fireblend closed 5 years ago

Fireblend commented 6 years ago

Here's a simple usage example of ExoPlayer for video streaming of a file hosted on the Internet. It has basic pause/resume controls as well as a demonstration of one of its event listeners to handle events such as reaching the end of the file being streamed. Note that a compileOptions block had to be added to the build.gradle file of the app module in order to desugar ExoPlayer's usage of Java 8 syntax or the example would only run on devices with Android O or superior.

nisrulz commented 6 years ago

Any reason you picked up Java to write the example? Any example app that I am putting in this repo is in Kotlin. Would it be possible to convert your code to Kotlin?

nisrulz commented 5 years ago

@Fireblend any update on this?

nisrulz commented 5 years ago

Closing as no response/activity.