@devcircle.space/player
v0.0.1
Published
Video player built with videojs for vanilla js and react based web applications
Downloads
9
Maintainers
Readme
Player
A video player built on top of Video.js, compatible with Vanilla JS and React.
Installation
npm install @devcircle.space/player
Example
Vanilla JS
import { VanillaVideoPlayer } from 'videojs-player-package';
const player = new VanillaVideoPlayer('video-element-id', { controls: true });
player.play();
React
import React from 'react';
import Player from 'videojs-player-package';
const options = { controls: true, autoplay: true };
const App = () => <Player options={options} />;