custoplayer
v0.5.2
Published
<h1>Custoplayer</h1> <p>A React.js npm package that allows for the rapid creation of customizable video players. </p> <span> <img src="https://img.shields.io/badge/license-MIT-green"></img> <img src="https://img.shields.io/github/issues/etesam913/Cust
Downloads
13
Maintainers
Readme
https://github.com/Etesam913/Custoplayer/assets/55665282/fedcb5a5-ec94-4fe0-b554-2bf78cf62c6a
npm install custoplayer
yarn add custoplayer
import React from 'react';
import { Custoplayer } from 'custoplayer';
function CustoplayerExample() {
return (
<Custoplayer
poster='https://custoplayer.nyc3.cdn.digitaloceanspaces.com/docs/custoplayer-demo-poster.png'
src='https://custoplayer.nyc3.cdn.digitaloceanspaces.com/docs/compressed-custoplayer-demo.mp4'
values={{
previewTooltip: {
id: 'text',
},
controlsBar: {
animate: 'movement',
barColor: 'rgba(28, 28, 28, 0.85)',
},
item1: {
id: 'playButton1',
buttonColor: '#b7cef4',
},
item2: {
id: 'volumeButton1',
barId: 'volumeBar2',
volumeColor: '#a4c3f5',
buttonColor: '#a4c3f5',
},
item3: {
id: 'currentTime',
textColor: '#b7cef4',
},
item4: {
id: 'progressBar1',
progressColor: '#a4c3f5',
},
item5: {
id: 'duration',
textColor: '#b7cef4',
},
item6: {
id: 'settingsButton1',
buttonColor: '#a4c3f5',
settingsMenuColor: '#a4c3f5',
settingsMenuOrientation: 'left',
options: {
playbackSpeed: [0.25, 0.5, 1, 1.5, 2],
},
},
item7: {
id: 'fullscreenButton1',
buttonColor: '#b7cef4',
},
}}
/>
);
}
export default CustoplayerExample;