Hi all and thanks in advance,
After all day looking, searching and trying i do not know if it is even possible, or if the problem is in the code, or if the problem is in the server....
First of all, can MediaPlayer play a m3u8 file?
In case Yes...it is only in versions greater than 3.0 or 4.0?
if i just try to play the url in a real device 4.0.4 i get error (1,-1010) or error 100 or -214.... The code is simple:
MediaPlayer mp = new MediaPlayer();
fich="http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8"; //e.g.
mp.setDataSource(localContext, Uri.parse(fich));
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
mp.setVolume(((float)volumenAudio / 100), ((float)volumenAudio / 100));
mp.prepare();
Is there a base error in my way of doing this? something i do not know?
Best regards and thanks,