Use "sampotts/plyr" library instead of "clappr/clappr"

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
hossainemruz 2021-04-06 01:09:28 +06:00
parent 0dafd655db
commit 3e9c936698
6 changed files with 31 additions and 23 deletions

View file

@ -72,6 +72,16 @@ var isMobile = false, isTablet = false, isLaptop = false;
}
addSmoothScroll();
// ===================== Video Player ==================
function renderVideoPlayer(){
var videos = document.getElementsByClassName("video-player");
for (var i =0; i< videos.length; i++ ){
const player = new Plyr("#"+videos[i].id);
}
}
renderVideoPlayer();
// re-render custom functions on window resize
window.onresize = function () {
detectDevice();