'How to download HLS stream video files and keep in local storage flutter?
How can I download HLS video files and keep it in local in flutter? I have tried using dio package and flutter_downloader package but not able to download full HLS video files of Playlist.m3u8.
For example,
URL: https://s3.example/samplevideo/playlist.m3u8
This above is the HLS video file URL it contains .ts files so I need to download all the .ts files related to playlist.m3u8 and store it in local.
Solution 1:[1]
The .m3u file is a playlist that should contain links of playable media. To download those links, you can use m3u plugin to parse the playlist. From there, you should be able to fetch the list of links that you can use to download the files.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Omatt |
