This is also affected by Android version; for version less than 2.3 I am using Vitamio player (open source) to play .m3u8
play m3u8 in videoview on Android
-
04-07-2022 - |
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.
Solución
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