/react-native-exoplayer

Exoplayer wrapper for React Native

Primary LanguageJavaMIT LicenseMIT

react-native-exoplayer

Video component for React Native

Installation

npm install --save 3dEYE/react-native-exoplayer
react-native link

Usage

import Video from 'react-native-exoplayer';

Later within your render function

<Video source={streamUrl}
       rate={1.0}
       volume={1.0}
       muted={false}
       paused={false}
       controls={false}
       onProgress={onProgress}
       onEnd={onEnd}
       onError={onError}
/>

Example

Try included example:

Clone repository and install dependencies:

git clone https://github.com/3dEYE/react-native-exoplayer.git
cd react-native-exoplayer/example
npm install

Run example:

react-native run-android