ollyde / flutter_macos_video_player

BSD 3-Clause "New" or "Revised" License
16 stars 16 forks source link

Open HLS (m3u8) url #16

Open postacik opened 1 year ago

postacik commented 1 year ago

I could not succeed to open an m3u8 url with this library. Is it ever possible?

The following URL opens fine with video_player on iOS and Android but not on MacOS with this library.

https://live1pop03.kablowebtv.com/Live/HLS/1022/1022.m3u8

postacik commented 1 year ago

The following url works fine on MacOS, Android and iOS:

https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8

Do you have any idea about how to fix this?

The first url is a live streaming url. The second working one is a pre-recorded movie.

ollyde commented 1 year ago

@postacik we do video transcoder and content checks on all our user generated content and convert them to standard MP4's so we have no need for that format.

You'd need to make a pull request to fix it :-)

If you're not doing transcoder and adult checks you are playing a risky game 😎

postacik commented 1 year ago

@ollyde I'm totally confused by your answer.

The following url is playing fine on MacOS with this package: https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8

However the following one is not playing at all: https://live1pop03.kablowebtv.com/Live/HLS/1022/1022.m3u8

The second one is playing fine with video_player package on iOS.

This package is also using AVPlayer as video_player does on iOS. I'm just trying to figure out what I can do to make the second url play on MacOS with this package.

When I open the MacOS project with Xcode, I see the following error in the log:

Query fired: did not receive all answers in time for live1pop03.kablowebtv.com:443

I hope, my question is clearer now.