Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

3dEYE/react-native-exoplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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