https://solarshield.co.uk/ 在本网站主页的背景中播放的视频并不总是播放,但如果保持清爽将播放。任何帮助或建议将不胜感激。不太清楚提供有关此事的其他信息。
<script type="text/javascript" src="templates/solarshield/js/okvideo.js"></script>
<script>
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
}
};
/* only play video on desktop devices RB200exAR1M */
trueMobile = isMobile.any();
if( trueMobile == null ) {
jQuery.okvideo({ source: '7JE4TDyXZ10',
volume: true,
loop: true,
hd:true,
adproof: true,
annotations: false,
onFinished: function() { console.log('finished') },
unstarted: function() { console.log('unstarted') },
onReady: function() { console.log('onready') },
onPlay: function() { console.log('onplay') },
onPause: function() { console.log('pause') },
buffering: function() { console.log('buffering') },
cued: function() { console.log('cued') },
});
}
if (trueMobile){
jQuery('.rep-topSlide').addClass('mob-video');
jQuery('.sections').removeClass('nobg');
jQuery('.player').remove();
}// JavaScript Document
任何帮助表示赞赏