Dlash
Dlash

Reputation: 154

play m3u8 in videoview on Android

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.

Upvotes: 1

Views: 6784

Answers (2)

Rohit5k2
Rohit5k2

Reputation: 18112

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

Upvotes: 1

AndroidEnthusiastic
AndroidEnthusiastic

Reputation: 931

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

Upvotes: 0

Related Questions