mirror of
https://github.com/zhigang1992/react-native-video-cache.git
synced 2026-01-12 22:40:52 +08:00
a94a2185075ac4efab215751f508b21616b16763
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4) Signed-off-by: dependabot[bot] <support@github.com>
react-native-video-cache
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';
...
const localProxiedURL = await convertToProxyURL(originalURL);
...
<Video source={{uri: localProxiedURL}} />
Description
Languages
JavaScript
34.6%
Objective-C
28.9%
Java
17.4%
Starlark
10.4%
Ruby
8.7%