0.4.11 • Published 2 years ago
@leafstudiosteam/hodotsvideoplayer v0.4.11
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
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 secondsSpace
Pause/Play