Streamer is an ExoPlayer2 wrapper that simplifies streaming videos with subtitles.
-
Add
jitpack
to the project's repositoriesallprojects { repositories { jcenter() maven { url "https://jitpack.io" } } }
-
Add
Streamer
to your dependenciescompile 'com.github.SniperDW:Streamer:1.0.0'
-
Use the library
PlayerActivity.play(context, videoTitle, videoURL, subtitleURL);