You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Mottie Could you please provide a solution for the below mentioned issue.
Video is not playing for single slide with video. The "var playVideo = function(slider) ", checking for currentSlider has any video. But in this case slider.find("video"); return as not found a video.
//if slider has video and then playvarplayVideo=function(slider){varvid=slider.find("video");if(vid.length){// playvid[0].load();vid[0].muted=true;vid[0].play();}};//if check slider has video and then pausevarpauseVideo=function(slider){varvid=slider.find("video");if(vid.length&&typeofvid[0].pause!=="undefined"){//pausevid[0].muted=true;vid[0].pause();vid[0].currentTime=0;}};//check slider has video and is playingvarisPlaying=function(slider){varvid=slider.find("video");return(vid.length&&typeofvid[0].pause!=="undefined"&&!vid[0].paused&&!vid[0].ended);};$(this.$el).anythingSlider({resizeContents: true,autoPlay: true,resumeOnVisible: true,buildStartStop: false,buildArrows: false,buildNavigation: false,infiniteSlides: true,easing: "swing",theme: "cs-portfolio",hashTags: false,fade: "fade",tooltipClass: "",pauseOnHover: false,expand: true,enableKeyboard: false,delay: 10000,stopAtEnd: true,// Autoplay video in initial panel, if one existsonInitialized: function(e,slider){playVideo(slider.$currentPage);},// pause video when out of viewonSlideInit: function(e,slider){pauseVideo(slider.$lastPage);},// play videoonSlideComplete: function(slider){//check slider has videovarvid=slider.$currentPage.find("video");if(vid.length){//vid[0].load();//vid[0].currentTime = 0;vid[0].muted=true;vid[0].play();slider.clearTimer(true);// stop slideshowvarrefreshId=setInterval(function(){if(!isPlaying(slider.$currentPage)){slider.clearTimer(true);// stop slideshowvid[0].muted=true;vid[0].pause();vid[0].currentTime=0;slider.gotoPage(slider.currentPage+1,true);slider.startStop(slider.playing,true);clearInterval(refreshId);}},500);}else{slider.clearTimer(true);// stop slideshowsetTimeout(function(){slider.gotoPage(slider.currentPage+1,true);slider.startStop(slider.playing,true);// restart slideshow},10000);}},// pause slideshow if video is playingisVideoPlaying: function(slider){returnisPlaying(slider.$currentPage);}});
The text was updated successfully, but these errors were encountered:
@Mottie Could you please provide a solution for the below mentioned issue.
Video is not playing for single slide with video. The "var playVideo = function(slider) ", checking for currentSlider has any video. But in this case slider.find("video"); return as not found a video.
The text was updated successfully, but these errors were encountered: