title: Video Player API (local / streaming HTTP - HTTPS) multi format android >= 8
body: <p>The Android app I'm working on, has Video Playing as an important Feature.</p>
  
  <p>Well... It's been 10 days since I'm struggling trying to integrate, not the best, but a good video player (streaming over HTTP and HTTPS and locally)</p>
  
  <p>I tried the <strong><em>VideoView</em></strong> first, but with the lack of simple customization (adding encryption keys etc...) I moved to the <strong><em>MediaPlayer class directly with surfaceView</em></strong> : There I could add the headers with <code>setDataSource</code> method and using Java reflection to make it work with Api == 8. The problem is that MediaPlayer doesn't accept all video containers formats... and some, even in MP4 are not being played. </p>
  
  <p>I then have integrated many open source projects all based on FFmpeg (pretty complicated to maintain , customize or develop additional stuff without good knowledge in C / C++) : </p>
  
  <p><strong><a href="https://github.com/appunite/AndroidFFmpeg" rel="nofollow">Appunite Player</a> :</strong> quite complete <strong>BUT</strong> adds at least 30 Mo to the APK size !!! + some bugs <em>(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 gcc4.8 or gcc4.6 of the NDK10 etc..)</em>, </p>
  
  <p><strong><a href="https://github.com/bbcallen/ijkplayer" rel="nofollow">ijk Player</a> :</strong> easy to integrate, plays almost all formats, <strong>BUT</strong> lacks the ability to add authentication header keys which is a requirement in my case.</p>
  
  <p>And now, I'm finding myself with no alternatives..</p>
  
  <p>So my question is : </p>
  
  <p>Is there any good Api to be :</p>
  
  <ul>
  <li><p>integrated and <strong>embedded</strong> in my app (not necessarily free) </p></li>
  <li><p>handles : <strong>Video Playing</strong> of a quite large amount of Formats, at least MP4, 3GPP, FLV</p></li>
  <li><p>if it handles Audio Playing that would be perfect (MP3, AAC)</p></li>
  <li><p>ability to add <strong>HTTP/HTTPS signature keys</strong></p></li>
  <li><p>for <strong>android API version >= 8</strong></p></li>
  <li><p>could be an HTML5 player if it respects all the previous requirement</p></li>
  </ul>
  
  <p>Thank you.</p>