flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

Downloading and Caching HLS streams like m3u8 in app

Open seanjackson opened this issue 2 years ago • 6 comments

I am developing an application like netflix and youtube where users can download the videos in app.I want to use the flutter cache manager.Please can someone guide me on how to downloads hls streams with flutter cache manager. I am on a serious deadline Thanks

seanjackson avatar Jul 15 '22 12:07 seanjackson

May be you can download m3u8 file first, and then use flutter_hls_parser to parse m3u8 file, and get the media url from m3u8 file. after that, you can download the media file yourself.

Or you can use better_player, it provides caching solution(but you can't manage it yourself).

lianfanghua avatar Aug 05 '22 05:08 lianfanghua

Hi, @lianfanghua The better_player supports cache option while playing the HLS video?

codesniper9315 avatar Aug 16 '22 20:08 codesniper9315

Hi, @lianfanghua The better_player supports cache option while playing the HLS video?

Yes, you can see better_player's office documentation about caching. At the tail of the document, there is an explanation of the caching scheme of HLS

lianfanghua avatar Aug 19 '22 06:08 lianfanghua

But better_player only provides a caching solution, not an Offline solution, if you want users to be able to download HLS media manually, you still have to provide it yourself.

lianfanghua avatar Aug 19 '22 06:08 lianfanghua

@lianfanghua Thanks for everything.You are the best! do you know how to implement hls download like Netflix or YouTube whereby users can watch the movies in app.

seanjackson avatar Aug 19 '22 11:08 seanjackson

@lianfanghua Thanks for everything.You are the best! do you know how to implement hls download like Netflix or YouTube whereby users can watch the movies in app.

I don't think it has anything to do with HLS's caching solution or offline solution, I have no experience with this.

lianfanghua avatar Aug 20 '22 10:08 lianfanghua