@devcircle.space/player
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i @devcircle.space/player

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

58.3 kB

Total Files

8

Last publish

Collaborators

  • aakash1103jha