Video Player
A frontend web video player.
Installation
CDN JavaScript
https://res.cloudinary.com/deepeshgupta/raw/upload/v1657553895/deepeshgupta/video-player/js/video-player-0.0.25_ojlbjk.js
Initialize
var myVideo;
(async () => {
myVideo = await window.deepeshdg.videoPlayer({
video: document.querySelector("video"),
loop: true,
});
})();
For Multiple
var myVideos;
(async () => {
myVideos = await window.deepeshdg.videoPlayer({
videos: document.querySelectorAll("video"),
loop: true,
});
})();
Sample image
Features
-
Press
space
ork
forPlay / Pause
. -
Press
j
orleft arrow
forbackward
10s and 5s respectively. -
Press
l
orright arrow
forforward
10s and 5s respectively. -
Press
up arrow
anddown arrow
forvolumn up
andvolumn down
5% respectively. -
Press
m
for toggleMute
. -
Press
f
ordouble click
Mouse on Screen for toggleFull Screen
. -
click
Mouse on anywhere on Video above controllers forPlay / Pause
.
Boom, You are good to go...
Developed By - Deepesh Gupta