mrtawil / react-native-video-cache

Caching your video without headache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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

About

Caching your video without headache


Languages

Language:JavaScript 34.6%Language:Objective-C 28.9%Language:Java 17.4%Language:Starlark 10.4%Language:Ruby 8.6%