0.0.1 • Published 9 months ago

@devcircle.space/player v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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} />;
0.0.1

9 months ago