979 B
979 B
react-native-video caching example (currently only working on iOS)
How to verify that caching is working (iOS)
- run
./update.sh
- open
ios/VideoCaching.xcworkspace
- build and run project in simulator
- after the video is loaded -> disconnect from the internet
- kill the application
- start the application again -> the video is there despite being offline :)
How to verify that you can build the project without the caching feature (iOS)
- In
ios/Podfile
apply the following changes
- pod 'react-native-video/VideoCaching', :path => '../node_modules/react-native-video/react-native-video.podspec'
+ pod 'react-native-video', :path => '../node_modules/react-native-video/react-native-video.podspec'
- run
./update.sh
- open
ios/VideoCaching.xcworkspace
- build and run project in simulator
- after the video is loaded -> disconnect from the internet
- kill the application
- start the application again -> the video should not load