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 1e66649d authored 2 years ago by libai's avatar libai
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

测试

parent 08366025 master … dev-替换FUSI安装包
Hide whitespace changes
Inline Side-by-side
Showing with 8 additions and 5 deletions
  • mTest/room/liveRoom.html
mTest/room/liveRoom.html
View file @ 1e66649d
......@@ -704,20 +704,23 @@ $(function(){
html+='<video muted id="myVideo" autoplay webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true" style="height:100%;object-fit:fill;position:absolute;z-index: 10" poster="" src="'+data.pullFlowUrlHLS+'"></video>'
}
}else{
html+='<video muted id="myVideo" autoplay webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true" style="height:100%;object-fit:fill;position:absolute;z-index: 10" poster="" src="'+data.pullFlowUrlHLS+'"></video>'
html+='<video muted id="myVideo" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true" style="height:100%;object-fit:fill;position:absolute;z-index: 10" poster="" src="'+data.pullFlowUrlHLS+'"></video>'
}
$(".video-box").html(html)
if(/android/.test(ua)){
flvPlay(data.pullFlowUrl)
}else{
setTimeout(function(){
document.getElementById("myVideo").play()
},300)
}
// flvPlay(data.pullFlowUrl)
$("#myVideo").on("error",function(e){
window.location.reload()
})
document.getElementById("myVideo").addEventListener('pause', function () { //暂停开始执行的函数
layer.msg("暫停了")
});
$("#myVideo").on("canplay",function(){
setTimeout(function() {
......@@ -725,7 +728,7 @@ $(function(){
$(".room-content-loading").fadeOut(100)
$(".loading-face").fadeOut(100)
if(/iphone|ipad|ipod/.test(ua)){
document.getElementById("myVideo").play()
}
}, loadOutNum);
......
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