Pregunta

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.

¿Fue útil?

Solución

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

Otros consejos

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top