3dEYE / react-native-exoplayer

Exoplayer wrapper for React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Exoplayer wrapper for React Native

License:MIT License


Languages

Language:Java 78.3%Language:JavaScript 11.9%Language:Objective-C 7.1%Language:Python 2.7%