Android : Video Player multi format android

on Thursday, September 11, 2014


The Android app I'm working on, has Video Playing as an important Feature.


Well... It's been 10 days since I'm struggling trying to integrate the best video player (streaming over HTTP and HTTPS and locally)


I tried the VideoView first, but with the lack of simple customization (adding encryption keys etc...) I moved to the MediaPlayer class directly with surfaceView : There I could add the headers with setDataSource method. The problem is that MediaPlayer doesn't accept all video containers formats... and some, even in MP4 are not being played.


I then have integrated many open source projects all based on FFmpeg :


Appunite Player : quite complete BUT adds almost 30 Mo to the APK size !!! (BTW if someone struggles to integrate it like I did, you need to know that : it needs to be built by NDK gcc 4.4.3 wich comes with NDK r8e it won't be built with NDK10 etc..),


ijk Player : easy to integrate, plays almost all formats, BUT lacks the ability to add authentication header keys which is a requirement in my case.


And now, I'm finding myself with no alternatives..


So my question is :


Is there any good Api to be included in my app (not necessarily free) which handles : Video Playing of a quite large amount of Formats, at least MP4, 3GPP, FLV (if it handles Audio Playing that would be perfect MP3, AAC), and ability to add HTTP/HTTPS signature keys and for android API version >= 8 (it could be an HTML5 player if it respects all the previous requirement) ?


Thank you.


0 comments:

Post a Comment