0.2.0 • Published 2 years ago

@vitrin/web-video-player v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vitrine Video Player Component

tests Codacy Badge version

A React component for playing mobile-friendly videos, with a story-like timeline for easier navigation through the video. Check out a sample. This component is used on Vitrine's web client.

npm i @vitrin/web-video-player
import { Video } from '@vitrin/web-video-player'
import '@vitrin/web-video-player/styles'

// ...

export const MyApp = () => (
  // ...
  <Video url='https://my.cdn/some-video-url'
    timeline={[{ t: 1.2 }, { t: 3.5 }]} />
  // ...
)

You need to have React 17+ installed, ideally with a bundler handling css files. If not, you can link the stylesheets directly from node_modules/@vitrin/web-video-player/dist/index.css.

Contribution

npm start        # --> runs the preview of the component
npm run build    # --> builds the component for production
npm test         # --> runs the tests
npm run coverage # --> runs the tests and reports the coverage
0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago