react-native-video/examples/video-caching
Tai Le Tuan daf5e595ec
feat: upgrade exoplayer to v2.17.1 (#2498)
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>
2022-06-15 10:24:55 -07:00
..
__tests__ Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
android feat: upgrade exoplayer to v2.17.1 (#2498) 2022-06-15 10:24:55 -07:00
ios fix: omit packager assets from caching (#1438) 2019-01-24 13:15:58 +01:00
.babelrc Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.buckconfig Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.flowconfig Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.gitattributes Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.gitignore update example project and fix build errors 2018-07-17 14:36:03 +02:00
.watchmanconfig Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
App.ios.js fix: omit packager assets from caching (#1438) 2019-01-24 13:15:58 +01:00
App.js 'Disable' example for non iOS devices 2018-02-28 13:56:43 +01:00
app.json Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
index.js 'Disable' example for non iOS devices 2018-02-28 13:56:43 +01:00
package.json update example project and fix build errors 2018-07-17 14:36:03 +02:00
README.md make video cache feature optional 2018-07-19 02:06:09 +02:00
rn-cli.config.js fix: omit packager assets from caching (#1438) 2019-01-24 13:15:58 +01:00
update.sh make video cache feature optional 2018-07-19 02:06:09 +02:00

react-native-video caching example (currently only working on iOS)

How to verify that caching is working (iOS)

  1. run ./update.sh
  2. open ios/VideoCaching.xcworkspace
  3. build and run project in simulator
  4. after the video is loaded -> disconnect from the internet
  5. kill the application
  6. 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)

  1. 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'
  1. run ./update.sh
  2. open ios/VideoCaching.xcworkspace
  3. build and run project in simulator
  4. after the video is loaded -> disconnect from the internet
  5. kill the application
  6. start the application again -> the video should not load