1.1.0 • Published 5 years ago

react-light-video v1.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

react-light-video

react-light-video is a web video player using React library.

Installation

npm install --save react-light-video

import react-light-video in your project:

import Player from 'react-light-video';

export default props => {
  const props = {
    source: 'your video href here',
    controls: true,
    loop: true
  };
  return <Player {...props} />;
};

Options

  • source : Video Link
  • fluid (default: true) : if video player 100% width of its father container
  • aspectRatio (default: '16:9'): videoWidth : videoHeight
  • width(number): ignore when fluid is true
  • height(number): ignore when fluid is true
  • loop (default: false)
  • controls (default: true)
  • autoPlay (default: false)
  • playsInline (default: false)

Events

  • onPlay
  • onPlaying
  • onEnded
  • onPause
  • onTimeUpdate
  • onAbort
  • onRef
  • onLoadStart
  • onWaiting
  • onCanPlay
  • onCanPlayThrough
  • onSeeking
  • onSeeked
  • onProgress
  • onDurationChange
  • onError
  • onSuspend
  • onEmptied
  • onStalled
  • onLoadedMetadata
  • onLoadedData
  • onRateChange
  • onVolumeChange
  • onAutoPlay
1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.1.0-0

5 years ago

1.0.8-beta.2

5 years ago

1.0.7-beta.1

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago