@expo/videoplayer
Customizable videoplayer controls for expo
Last updated 2 years ago by abi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @expo/videoplayer 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.4.0                                ...           latest (2 years ago)

11 Versions

  • 0.4.0                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.13                                ...           3 years ago
  • 0.1.12                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.7                                ...           3 years ago
  • 0.1.6                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |