修改播放参数

This commit is contained in:
cebgcontract 2022-09-27 19:28:17 +08:00
parent 88c5dc58c2
commit c612509971
2 changed files with 4 additions and 8 deletions

View File

@ -230,10 +230,10 @@
<script type="text/javascript" src="./js/jcchain.js"></script>
<script type="text/javascript" src="./js/main.js"></script>
<script>
$('#gameVideo').click(function () {
$('.video-mask').hide()
$('#video-frame').show()
})
// $('#gameVideo').click(function () {
// $('.video-mask').hide()
// $('#video-frame').show()
// })
var tag = document.createElement('script')
tag.src = 'https://www.youtube.com/iframe_api'
@ -266,8 +266,6 @@
var done = false
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING && !done) {
setTimeout(stopVideo, 6000)
done = true
}
}
function stopVideo() {

View File

@ -281,8 +281,6 @@
var done = false
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING && !done) {
setTimeout(stopVideo, 6000)
done = true
}
}
function stopVideo() {