首页 > 代码库 > video

video

静音

video.muted = true;

播放 暂停
if(video.paused){
    video.play()
}else{
video.pause()
}


微信
document.getElementById(‘video‘).addEventListener("x5videoexitfullscreen", function(){
    alert("exit fullscreen")
})

document.getElementById(‘video‘).addEventListener("x5videoenterfullscreen", function(){
alert("enter fullscreen")
})

video