0.0.25 • Published 3 years ago
@deepeshgupta/video-player v0.0.25
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.jsInitialize
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
spaceorkforPlay / Pause.Press
jorleft arrowforbackward10s and 5s respectively.Press
lorright arrowforforward10s and 5s respectively.Press
up arrowanddown arrowforvolumn upandvolumn down5% respectively.Press
mfor toggleMute.Press
fordouble clickMouse on Screen for toggleFull Screen.clickMouse on anywhere on Video above controllers forPlay / Pause.
Boom, You are good to go...
Developed By - Deepesh Gupta

