var myPlayer = videojs('my-video');
$(".detail-play-img").click(function() {
myPlayer.requestFullscreen();
myPlayer.play();
$(this).hide();
$(".detail-bg").hide();
});
以上是点击全屏播放的代码,在华为手机下是竖屏的全屏,还有在小米手机下没有全屏
使用swiper.js做的视频和图片的轮播,在小米和华为手机下,视频播放后不能轮播,下面是轮播的代码
var mySwiper3 = new Swiper('.swiper-container3', {
loop: false,
slidesPerView: 1,
nextButton: '#swiper-next3',
prevButton: '#swiper-prev3',
longSwipesRatio: 0.1,
pagination: '.swiper-pagination',
onTouchMove: function(swiper) {
myPlayer.pause();
//$(".detail-play-img").show();
//$(".detail-bg").show();
}
})
谢邀:这一块实践的比较少,只能说点建议:
没法具体帮助了。