Commit eaa61a30 by libai

测试

parent 48a0c5d0
Showing with 3 additions and 16 deletions
......@@ -630,7 +630,7 @@ $(function () {
}).catch(error => {
var myVideo=document.querySelector(".live-video")
var html = [];
html += '<video controls webkit-playsinline ="true" playsinline ="true" autoplay ="" playsinline="true" class="live-video" src="" id="videoElement" loop="" ></video>';
html += '<video controls webkit-playsinline ="true" muted playsinline ="true" autoplay ="" playsinline="true" class="live-video" src="" id="videoElement" loop="" ></video>';
$(".live-content-box-left-roombox").html(html)
flvPlay(data.pullFlowUrl)
......@@ -1480,23 +1480,10 @@ $(function () {
$("#videoElement").prop('muted', false)
flvPlayer.play()
})
const btn = document.getElementById('body-click');
btn.onclick = function () { //
flvPlayer.play()
};
setTimeout(() => {
simulateClick();
$("#videoElement").prop('muted', false)
}, 1000);
function simulateClick() {
const event = new MouseEvent('click', {
view: window,
bubbles: true,
cancelable: true
});
btn.dispatchEvent(event);
}
}
......
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