3

I am trying to stream AES encrypted HLS content in the Android MediaPlayer, however the content never loads.

The path to the .m3u8 file (hosted on akamai) includes extra parameters in the url (for decryption and authentication purposes) which are parsed into a uri, then the uri is passed into the MediaPlayer.

I can manually put the url with these extra parameters into a web browser and retrieve the correct m3u8 files no problem, I've even tried pointing quicktime on my mac to the url and it plays great but the MediaPlayer on android does not seem to know what to do with it.

Does anyone have any pointers on how it is possible to play encrypted HLS streams using MediaPlayer?

Edit: the calls are done over https and I am targeting android 4.0 (ICS) minimum

AndroidNoob
  • 2,771
  • 2
  • 40
  • 53
  • 1
    This might help: (http://stackoverflow.com/questions/11673932/hls-with-aes-128-encryption-on-android-ice-cream-sandwich/13393936#13393936) In my experience support is still quite new and device-dependent. – Ken Wolf Jun 04 '13 at 17:05
  • 1
    Thanks for the pointer, I'm actually targeting ICS as a minimum so I don't think I'd have a problem there, I have a feeling that because all the calls and data are retrieved via https there's an issue there. – AndroidNoob Jun 05 '13 at 10:21
  • Did you ever get this to work? I'm trying to find an example of it as well.. – kenyee Apr 18 '14 at 12:54
  • Yes I did, the problem was not Android, it was the authentication in Akamai. AES encrypted streams work fine on Android. – AndroidNoob Apr 22 '14 at 15:46

1 Answers1

0

This is an old question but just to verify; the problem was not Android, it was the authentication in Akamai. AES encrypted streams work fine on Android out of the box.

AndroidNoob
  • 2,771
  • 2
  • 40
  • 53