Commit f5057c07 by libai

测试

parent e0c379b9
Showing with 5 additions and 11 deletions
...@@ -1480,17 +1480,11 @@ $(function () { ...@@ -1480,17 +1480,11 @@ $(function () {
$("#videoElement").prop('muted', false) $("#videoElement").prop('muted', false)
flvPlayer.play() flvPlayer.play()
}) })
const video = document.getElementById('videoElement'); setTimeout(() => {
video.addEventListener('canplay',canplay); var bodyBtn=document.getElementsByTagName("body")
function canplay(){ bodyBtn.click()
const a = document.createElement('a'); }, 1000);
a.onclick = function(){
flvPlayer.play()
}
const event = new MouseEvent('click');
a.dispatchEvent(event );
video.removeEventListener('canplay',canplay);
}
} }
......
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