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

Do we need to remove cached items ? If yes how? #43

Open
mohamedrafi-rapid opened this issue Jul 21, 2022 · 4 comments
Open

Do we need to remove cached items ? If yes how? #43

mohamedrafi-rapid opened this issue Jul 21, 2022 · 4 comments

Comments

@mohamedrafi-rapid
Copy link

Please help to clear the caches... Thanks in advance

@neekeetab
Copy link
Owner

There's no caching done by CachingPlayerItem. It only gives you the raw Data via a delegate, and it's up to you how to cache it (and how to delete it from your cache). If you're running low on memory, try to remove any references to the instances of CachingPlayerItem

@mohamedrafi-rapid
Copy link
Author

@neekeetab Thanks for your reply. Can you pls do one more help? I want to download only 20 percent of each item. How can we do that?

@mohamedrafi-rapid
Copy link
Author

I am implemeting a short video feature. So I am trying to cache only the nearest times only (back and forth). So when I call caching , it starts again each time

@neekeetab
Copy link
Owner

There's no such functionality. My guess is you will need to reimplement the loading. You can get the total size of a file and calculate 20%, then cancel download once you reach the threshold

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

2 participants