-
Notifications
You must be signed in to change notification settings - Fork 134
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
Comments
+1 |
+2 |
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? |
I wish that if you have HSL video you could only precache the first part of the video. |
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 |
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.
The text was updated successfully, but these errors were encountered: