-
Notifications
You must be signed in to change notification settings - Fork 12
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
[shaka] Preload shaka media #37
Comments
Hi, thanks for bringing this up. hls-video has this preload function built in as you can see here The preload attribute / property together with the For shaka-video we haven't implemented preload it seems so I'll leave this issue open to track it. |
Thanks for your response. Unfortunately that does not allow preloading off screen (before a video element has been initialized) . This is normally accomplished by calling an imperative function during some sort of user intent, but the media may not be attached yet. Is that something the hls player element allows access to? |
yes, you can create and upgrade the element before attaching to the document. since it's a custom element you'd have to use example: |
Hello, i have an app with a grid of videos and I would like to preload them as the user scrolls, and stop loading them as the user scrolls past them (user unlikely to play those they scroll past).
shaka player provides a preload api to prefrtch the manifest and the first segment, as well as destroy/stop preloads midflight. Does this library expose any way for the media elements to preload things, or at least have access to the underlying instance? Would be nice to customize some of the initialization options too
hls.js also has a loadSource function, can I utilize that with hls-video element?
if not, how do you recommend someone preload something (ideally from a cache)
The text was updated successfully, but these errors were encountered: