I've created a service that uses android.media.MediaPlayer
, it works fine with 3.1+ devices and as expected doesn't fully work with older android versions as HTTPS and live streaming are not supported. There's no problem with local files.
What I want to do is to use android.media.MediaPlayer
for 3.1+ devices and I'll have to create an alternative for others (base SDK is 8, Android 2.2).
I found a single somewhat useful article which I guess will not work for live-streams (as it records data to file) and I'm not really sure if it's a good approach for HTTPS progressive streaming.
I'd like to use a memory buffer with a limited size; caching of loaded content and ability to seek for location is not as important as ability to start playback at all. Unfortunately there's just no information I was able to find in regards to memory-bufering for android.media.MediaPlayer
or any native alternative of android.media.MediaPlayer
itself.
So the question is, are there any alternatives to android.media.MediaPlayer
supporting low-level datasource (like stream or buffer) or any other workaround for HTTPS and live-streams ? If nothing like this is part of SDK 8+, maybe there's an opensource project to fork.
There's a bit similar question android mediaplayer alternative?, it asks for the features which I don't need and doesn't request the features I need.