2
votes

I have played http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8 in Android 4.0.3 (API 15) in the emulators browser, it plays only with audio but without video. however when I downloaded all the files along with the m3u8, the browser is unable to play... Why does this happen? Any idea?... I'm stuck in this since 20 days. I even tried encoding the files myself, they all play very well in Safari on a Mac, but not in the emulator or the real device.

1

1 Answers

3
votes

I don't know why you want to play this video in any browser. I use default video player and m3u8 video plays without any problem. API Level must be higher than 14 (Android 4.0+).

If you want to start the video from your own Activity using URL, try the code below. It's tested and works on real android device.

String url = "http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(url), "video/*");
startActivity(intent);