Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.48 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.48 KB

This library was bootstrapped with Create React App and for React.js developers only.

Notice to downloaders here!

Do not install this package in your React project yet, This package development is paused and we are deeply sorry if you have experienced bugs at this package. We aren't sure when to resume it's development for the video player.

Sorry for the inconvinience

hodots. Video Player

hodots.

hodots. Video Player is open source video player by [TuxPenguin09](https://github.com/TuxPenguin09) for his made from scratch video player.

Install

npm i @leafstudiosteam/hodotsvideoplayer --save

React.js Import

import { VideoPlayer } from '@leafstudiosteam/hodotsvideoplayer';
import '@leafstudiosteam/hodotsvideoplayer/dist/index.cjs.css';

Usage

//Import Libraries
import { VideoPlayer } from '@leafstudiosteam/hodotsvideoplayer';
import '@leafstudiosteam/hodotsvideoplayer/dist/index.cjs.css';

<VideoPlayer 
src={/* Source of the video */}
placeholder={/* Thumbnail */}
/>

Parameters

src (string)

A source of the video, or a link that returns a video/*.

placeholder (string)

A source of an image, or a link that returns a image/*.

keysDisabled (boolean)

Whether some keys assigned will never respond if the boolean is true.

Key Bindings

  • <- -5 seconds
  • -> +5 seconds
  • Space Pause/Play