mirror of
https://github.com/zhigang1992/react-native-video-cache.git
synced 2026-01-12 08:23:45 +08:00
a2e6fcbb0780835bc45d1a01d5c31d9a4e073792
react-native-video-cache
- Fixed its android conflict with react native v0.67 (gradle > 0.7)
Boost performance on online video loading and caching
Use following libraries to do the heavy lifting.
- iOS: https://github.com/ChangbaDevs/KTVHTTPCache
- Android: https://github.com/danikula/AndroidVideoCache
Getting started
$ yarn add react-native-video-cache
Mostly automatic installation
$ react-native link react-native-video-cache
Usage
import convertToProxyURL from 'react-native-video-cache';
...
<Video source={{uri: convertToProxyURL(originalURL)}} />
Install on android
Edit your android/build.gradle file and add the following lines:
maven {
url "$rootDir/../node_modules/react-native-video-cache/android/libs"
}
to your allprojects/repositories
Description
Languages
JavaScript
34.6%
Objective-C
28.9%
Java
17.4%
Starlark
10.4%
Ruby
8.7%