Commit f5057c07 by libai

测试

parent e0c379b9
Showing with 5 additions and 11 deletions
......@@ -1480,17 +1480,11 @@ $(function () {
$("#videoElement").prop('muted', false)
flvPlayer.play()
})
const video = document.getElementById('videoElement');
video.addEventListener('canplay',canplay);
function canplay(){
const a = document.createElement('a');
a.onclick = function(){
flvPlayer.play()
}
const event = new MouseEvent('click');
a.dispatchEvent(event );
video.removeEventListener('canplay',canplay);
}
setTimeout(() => {
var bodyBtn=document.getElementsByTagName("body")
bodyBtn.click()
}, 1000);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment