Skip to content
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

Add pre-cache functionality. #65

Open
Helocominc opened this issue Mar 7, 2023 · 5 comments
Open

Add pre-cache functionality. #65

Helocominc opened this issue Mar 7, 2023 · 5 comments

Comments

@Helocominc
Copy link

Adding a preCache to this package will help to avoid caching the whole video. Take for instance social media apps that has a lot of videos to be played and caching all these videos will affect the memory and performance of the app and device.

preCache will help to just cache only amount of video time like preCaching for 10 secs as video download.

@jtkeyva
Copy link

jtkeyva commented Mar 8, 2023

+1

@davthompson
Copy link

+2

@vikram25897
Copy link
Owner

I don't think it would be easy or even possible to stop caching by video duration. But I guess I can limit it by size. For example, limiting each cache file at 10MB or something? Would that be enough?

@b3nni97
Copy link

b3nni97 commented Mar 29, 2023

I wish that if you have HSL video you could only precache the first part of the video.
Then you could preload videos like on Instagram or TikTok and when you want to watch them in full, the video is loaded after the precached part.

@jtkeyva
Copy link

jtkeyva commented Mar 30, 2023

Don't quite know the nuts and bolts of how this could work and after thinking, not sure it's the responsibility of the video player to pre-cache. https://pub.dev/packages/preload_page_view has worked ok for me. Curious what the solution could be.

If you start adding features then the further away it gets from the official video_player package. Hmm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants