Commit 48a0c5d0 by libai

测试

parent f5057c07
Showing with 15 additions and 3 deletions
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</head> </head>
<body style="background: #F0F1F4;"> <body id="body-click" style="background: #F0F1F4;">
<div class="big-room-box"> <div class="big-room-box">
<div class="neck-nav"> <div class="neck-nav">
<div class="neck-nav-content"> <div class="neck-nav-content">
...@@ -1480,11 +1480,23 @@ $(function () { ...@@ -1480,11 +1480,23 @@ $(function () {
$("#videoElement").prop('muted', false) $("#videoElement").prop('muted', false)
flvPlayer.play() flvPlayer.play()
}) })
const btn = document.getElementById('body-click');
btn.onclick = function () { //
flvPlayer.play()
};
setTimeout(() => { setTimeout(() => {
var bodyBtn=document.getElementsByTagName("body") simulateClick();
bodyBtn.click()
}, 1000); }, 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