Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Preload shaka player or other media ahead of time #976

Closed
austinh opened this issue Sep 19, 2024 · 1 comment
Closed

Preload shaka player or other media ahead of time #976

austinh opened this issue Sep 19, 2024 · 1 comment

Comments

@austinh
Copy link

austinh commented Sep 19, 2024

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?

hls.js also has a loadSource function, can I utilize that with hls-video?

if not, how do you recommend someone preload something (ideally from a cache)

@luwes
Copy link
Contributor

luwes commented Sep 19, 2024

related muxinc/media-elements#37

@muxinc muxinc locked and limited conversation to collaborators Sep 19, 2024
@luwes luwes converted this issue into discussion #977 Sep 19, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants