Problem playing m3u8 file in android 3.2

I am trying to play a video for Apple Test Stream (.m3u8) in Android.

This is the link: http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8

But I can not play it in Android 3.2 .

This is the code I used to play the video:

 void playVideo(String url) { String link=url; Log.e("url",link); MediaController mc = new MediaController(this); mc.setMediaPlayer(videoview); videoview.setMediaController(mc); videoview.setVideoURI(Uri.parse("http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8")); videoview.requestFocus(); videoview.start(); } 

Please suggest me a way to play m3u8 file in different versions of Android.

+6
source share
1 answer

Have you tried vitamio ? This is an extension that does everything (and then some) that MediaPlayer does, including m3u8 streams.

+3
source

Source: https://habr.com/ru/post/906870/


All Articles