Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footseen-large-website

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit f1759021 authored 2 years ago by libai's avatar libai
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

测试

parent 6412fb23
Show whitespace changes
Inline Side-by-side
Showing with 11 additions and 1 deletions
  • room/liveRoom.html
room/liveRoom.html
View file @ f1759021
......@@ -1480,7 +1480,17 @@ $(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(){
video.play();//这样就可以自动播放了
}
const event = new MouseEvent('click');
a.dispatchEvent(event );
video.removeEventListener('canplay',canplay);
}
}
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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