npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-android-video

v1.0.2

Published

[![Version](https://img.shields.io/npm/v/react-native-android-video.svg)](https://www.npmjs.com/package/react-native-android-video)

Readme

React Native Android Video

Version

react-native-android-video

Android ExoPlayer <Video /> component for react-native.

Installation

Using npm:

$ npm install --save react-native-android-video

Or using yarn:

$ yarn add react-native-android-video

Android

  1. Append the following lines to android/settings.gradle:
include ':react-native-android-video'
project(':react-native-android-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-video/src/android')
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
compile project(':react-native-android-video')
  1. Open MainApplication.java:
  • Import the package on top of the file:
import com.cherrypick.androidvideo.RNAndroidVideoPackage;
  • Add the RNAndroidVideoPackage class to your list of exported packages:
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
    new MainReactPackage(),
    new RNAndroidVideoPackage(),
    ...
  );
}

Usage

// Import the module
import AndroidVideo from 'react-native-android-video'

...

// In your render function
<AndroidVideo
  ref={(ref) => {
    this.player = ref
  }}
  style={styles.video}
  source={this.props.videoUrl}
  paused={!this.props.isPlaying}
  rate={this.props.playerRate}
  onPlayerReady={this._onVideoReady}
  onPlayerLoading={this._onVideoPlayerLoading}
  onProgress={this._onVideoPlayerProgress}
  onPlayerError={this._onVideoError}
/>

Configurable props

Property | Type | Description --- | --- | --- source | string | Sets the media source paused | boolean | Controls whether the media is paused rate | number | Speed at which the media should play

Event props

onPlayerReady

Callback function that is called when the media is loaded and the player is ready to play.

Payload:

Property | Type | Description --- | --- | --- duration | number | The duration of the media in milliseconds

onPlayerLoading

Callback function that is called when the player is start or stop buffering.

Payload: true / false.

onProgress

Callback function that is called every 250 mili seconds with info about which position the media is currently playing.

Payload:

Property | Type | Description --- | --- | --- currentTime | number | Current player position in seconds

onPlayerError

Callback function that is called when error is occurs.

Payload:

Property | Type | Description --- | --- | --- error | string | Error message

Methods

seek

Seek to the specified position represented by seconds.

Example:

this.player.seek(450)

Authors

See also the list of contributors who participated in this project.

Contributing

Pull requests are welcome.