Since android mediaplayer has lots of problems. If you wish to swtiching the player from mediaplayer to ExoPlayer seamlessly, you are at the right place.
ExoPlayer has a totally new API design. If you already using mediaplayer, you need to change a lot of code in order to use ExoPlayer. This extension does the heavy work for you. It provides the same API,callbacks,lifecycle with android mediaplayer with exoplayer behind the scenes. It makes developers using exoplayer in their project much easier.
No Dependency except Exoplayer.
Tested on ExoPlayer 2.7.1 (the newest at the time of writting), It should be compatible with latest version in therotical.
This project contains a simple demo, play video using SurfaceView just like the MediaPlayer API
- We slightly modify exoplayer for our own usage,(minor bugfixes, add audiolevel support, performance enhancement etc) the code is located at https://github.com/michalliu/Google_ExoPlayer, This extension should work on vanilla ExoPlayer, you just need comment out some code, the main functionality is not affected.
- The code is pretty mature and we already use in our production environment in the scale of billions users.
- The extension added supports for soft decoding hevc/h265 video using OpenHevc (Not mature, playable though), code located at https://github.com/michalliu/exoplayer2-hevc-extension
- This extension supports concating play multiple media files playing just like one video.
Any questions, feel free to submit an issue