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

Preload and offline caching doesn't seems to be working with this SwiftUI wrapper #63

Open
SureshKumarD opened this issue May 15, 2024 · 1 comment

Comments

@SureshKumarD
Copy link

SureshKumarD commented May 15, 2024

Simple GSPlayer with UIKit supports preloading, offline caching.
Whereas this swiftUI wrapper doesn't seems to be working.

I have tried setting the preloadByteCount in sceneDelegate
VideoPlayer.preloadByteCount = 20 * 1024 * 1024
or
VideoPreloadManager.shared.preloadByteCount = 20 * 1024 * 1024

And I tried preloading the next url while current url is being played by setting at the right place
VideoPlayer.preload(urls: [url])
or
VideoPreloadManager.shared.set(waiting: [url])
note the url is next url.

However, the preloading is not happening as well as offline caching is not working.
@wxxsw @GraemeHarrison @conversun @phongngo511
Any help would be appreciated. Thanks in advance.

@stefanosn
Copy link

stefanosn commented Jun 28, 2024

Have the same issue, does not seem to work the preload. Although the cache is increasing when i try to check the cache size using VideoPlayer.calculateCachedSize(), but i do not see any difference when i try to play the same video.

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