1.2.1 • Published 3 years ago

simple-video-controls v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Simple Video Controls

A simple HTML video player with custom controls and theming.

SVC Example Image

How to use:

Include the files needed.

<script src="../dist/svControls.js"></script>
<link href="../dist/svControls.css" rel="stylesheet">

Then use the function, passing in the element ID or DOM Element Object.

svControls('videoID');

If you would like to alter the default video player options, you can pass in options.

svControls(
    'videoID',
    {
        stop: false,
        showOnHover: false
    }
);

Example options:

play: {
    icon: '<i class="icon..."></i>',
    show: true,
},
pause: {
    icon: '<i class="icon..."></i>',
    show: true,
},
stop: {
    icon: '<i class="icon..."></i>',
    show: true,
},
mute: {
    icon: '<i class="icon..."></i>',
    show: true,
},
volume: {
    icon: '<i class="icon..."></i>',
    show:  true,
    value: 0.5,
},
progress: {
    show: true,
    color: '#4d9dff',
    fontFamily: 'monospace',
    fontSize: '16px',
},
fullscreen: {
    icon: '<i class="icon..."></i>',
    show: true,
},
zoom: {
    icon: '<i class="icon..."></i>',
    show: true,
},
clickPlayPause: false,
spacebarPlayPause: true,
backgroundColor: 'linear-gradient(0deg, #0000007a, transparent)',
color: 'white',
accentColor: '#4d9dff',
minWidth: 500,
minHeight: 30,
showOnHover: true,
loop: false,
autoplay: false,
muted: false
1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago