daf5e595ec
Describe the changes Upgrade ExoPlayer to version 2.17.1 Provide an example of how to test the change Tested with a forked of react-native-video-test * Update exoplayer to v2.15.1 * feat: upgrade ExoPlayer to version 2.17.1 * chore: update CHANGELOG * remove ExoPlayerFullscreenVideoActivity * Fix build issues * Fix build & runtime issues Co-authored-by: Eran Hammer <eran@hammer.io> Co-authored-by: Armands Malejev <armands.malejevs@gmail.com> |
||
---|---|---|
.. | ||
__tests__ | ||
android | ||
ios | ||
.babelrc | ||
.buckconfig | ||
.flowconfig | ||
.gitattributes | ||
.gitignore | ||
.watchmanconfig | ||
App.ios.js | ||
App.js | ||
app.json | ||
index.js | ||
package.json | ||
README.md | ||
rn-cli.config.js | ||
update.sh |
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