-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local/offline playback + download support #1189
Comments
@jimmywarting Downloading the manifest to an in-browser DB is quite complicated. However, it wouldn't be too much work (I think) to implement the |
I'm not sure this should be implemented in the hls library as it's not something everyone would use, but probably in players sitting on top of it. We did something similar to this for site-to-multisite broadcasts. Our player is pretty much Chrome only and about 2000 lines of JS. We use the file system api, along with localstorage. Manifest entries are kept in a Map and occasionally flushed to disk as JSON. For hls.js integration, we configure with a custom fragment loader and playlist loader. |
agree this should be made through custom loader. |
Hm, then I got some question.
|
#1, #2 https://github.com/video-dev/hls.js/blob/master/doc/API.md#loader |
@eutychus would you care to share your code, is it open source? |
Sorry, the code belongs to the company I work for and is heavily tied to the backend it connects to, so it probably wouldn't be easily adapted anyway... I was just trying to give you enough pointers to get an idea of what can be done and where to start if you wanted to build something like this out... (without having to touch the hls.js code). There is a lot of power in the ability to use custom loaders. |
For reference Shaka player design notes on the subject can be found here. |
+1 here! I want to save live videos and watch them when offline but all videos downloaded without sound. Please consider adding such a great option to this library. |
any progress on this? |
I'm attempting to do a custom loader (using something like abstract-chunk-store) but i still think it needs more core functionality... like getting a list of all fragments that you should download. and download/adding fragments without involving xhr or watching the movie. Building a custom loader isn't good enough IMO. Needs something better built in... Think a Then we need some utilities function for downloading a level (quality) without having to watch the hole movie for example And then some function for cleaning up stuff |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@eutychus could you give a more general explanation of how your team implemented that functionality? I tried use shaka player as well, but ir force the use of DRM in order to encrypt the HLS. (if it support to HLS with AES i didn't find any resource about it). Any help will be grateful. |
Hi I was wondering if there was the possibility of local playback / download support like ShakaPlayer?
The functionality is quite complex. It first parses the manifests and stores the data into an indexDB then rebuilds the manifest and data from this database for local playback.
The text was updated successfully, but these errors were encountered: