-
Notifications
You must be signed in to change notification settings - Fork 28
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
is Disk cache available ? #3
Comments
@SureshSc Did you manage to achieve this functionality? |
@shashank-rps not yet. |
@SureshSc sorry for late response. To achieve this I can add data source method to loader delegate that can return NSData for requested URL and range. But if you want instantaneous start you should also give resource loader content-type, content length, and byteRangeAccessSupported flag. Have you thought about caching first seconds with AVPlayer and holding AVAsset objects in memory? |
will track progress in this issue |
I wanted to save the cache to disk(Document directory) and when want to play the same url it should take from disk and then should play.
My scenarios:
I wanted to download 3sec of video and should save in cache, when user click play in AVPlayer, disk cached (3sec) video should play first and the remaining video should play from network.
The text was updated successfully, but these errors were encountered: