Question

I have a strange problem with playing stream in videoview with this code:

videoView.setVideoURI(Uri.parse("///.m3u8"));

It playing perfectly on my nexus4 phone, but but on other devices(Fly IQ4410, HTC Legend) there is failure of playing video.

Can anyone explain to me why I have such a problem, or is there any other way to play m3u8 files?

Thanks.

Was it helpful?

Solution

This is also affected by Android version; for version less than 2.3 I am using Vitamio player (open source) to play .m3u8

OTHER TIPS

In some devices doesn't support video formats like m3u8,.wav. My suggestion is please add android:hardwareAccelerated="true" in manifest file. after adding this line still video is not playing. please change video format into Mp4 or 3gp and then try again. Best of luck

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top