@expo/videoplayer

Customizable videoplayer controls for expo

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
8229Jun 7, 2019Aug 13, 2017Minified + gzip package size for @expo/videoplayer in KB

Readme

Videoplayer controls builds on top of the Expo Video component. All of the colors, timing, images and types are customizable. The behavior generally follows YouTube (examples of where this is relevant: controls fading in/out, what shows over the player when seeking, etc.).

You can try the example app on Expo here.

Install

npm install @expo/videoplayer

Examples

See the examples directory for a full example.

import { Video } from 'expo';
import VideoPlayer from '@expo/videoplayer';

<VideoPlayer
  videoProps={{
    shouldPlay: true,
    resizeMode: Video.RESIZE_MODE_CONTAIN,
    source: {
      uri: 'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8',
    },
  }}
  isPortrait={true}
  playFromPositionMillis={0}
/>

Props

The props are documented here.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.