-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cache for ios ? #282
Comments
I'm also interested to know if caching is in the works for iOS. This is by far the best RN sound library, but I won't be able to release my app for iOS until it has offline playability (since it's a standard feature in competing apps). |
Cacheing is implemented in IOS by creating a local proxy server to serve the files. The proxy server would handle cacheing. I would recommend using https://github.com/swisspol/GCDWebServer |
@osiloke Have you managed to enable caching with this library using that method? |
@mateomorris, i have. I made changes to react-native-track-player which recognizes localhost requests as local urls and therefore allows tracks to be played even though the server is offline. Take a look at the osiloke@0fb1225 |
That's pretty cool. I'll try it out and post here if I get it working. Thanks @osiloke |
Hello, |
But what about this https://github.com/spotify/SPTPersistentCache and https://github.com/vdugnist/DVAssetLoaderDelegate ? react-native-video uses these packages to implement caching on iOS |
Haven't implemented this myself but plan to in the future. For others interested here is the react-native-video discussion that @gazedash mentioned. TheWidlarzGroup/react-native-video#99 |
Got caching working on iOS with react-native-fetch-blob.
|
@mateomorris it's not caching, it's downloading. The main point of caching is to be able to save the audio file while the user is listening to it. In your solution, user have to wait to be able to play it locally. |
Ah, gotcha. Didn't know that difference. At any rate, this was good enough for my purposes. |
Any news on this issue ? |
Ping! |
Came across https://github.com/StyleShare/HLSCachingReverseProxyServer Can someone please help with implementing it? |
Why this issue was closed? |
Hello,
Is it possible to have cache for ios too ? I would like to reduce the bandwidth consumption by downloading the track only the first time the user listen to it.
Thank you.
Regards,
Toufic.
The text was updated successfully, but these errors were encountered: