How to play m3u8 links using flutters video_player or chewie or video_viewer plugin?


I have noticed some of the links are not working on iOS devices by using flutters video_player plugin, but If I use the below example link, it works well on all the devices even on android and iOS.

below links are not working on iOS devices but works on android devices,

any clue how can we make it work?


If you’re using video_player you should comment the below code for ios

// The player may be initialized but still needs to determine the duration.
if ([self duration] == 0) {

In line number 315


It seems like live hls stream is always returning duration=0

Answered By – Stupid Dream

Answer Checked By – Mary Flores (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *