Commit 0a2d60b9 by libai

测试

parent 026a1274
......@@ -480,7 +480,8 @@ $(function () {
var sendType=1;
var guardShowOk=null;
var richType=1
var layzT=true;
var layzT=true;3
$(window).on("scroll",function(){
if(layzT==true){
layzT=false
......@@ -622,13 +623,15 @@ $(function () {
if (promise !== undefined) {
promise.then(_ => {
var html = [];
html += '<div class="live-video jswebrtc" data-url="'+data.pullFlowUrl+'" ></div>';
$(".live-content-box-left-roombox").html(html)
html += '<video controls webkit-playsinline ="true" playsinline ="true" autoplay ="" playsinline="true" class="live-video" src="" id="videoElement" loop="" ></video>';
$(".live-content-box-left-roombox").html(html)
flvPlay(data.pullFlowUrl)
// Autoplay started!
}).catch(error => {
var myVideo=document.querySelector(".live-video")
var html = [];
var html = [];
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)
......
......@@ -226,10 +226,10 @@ $(function(){
}
$(".video-tag-box").html(html);
var html=[];
html+='<video autoplay="" class="video" src="" id="videoElement" controls="" loop="" poster="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover+'"></video>';
html+='<video autoplay="" class="video" src="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].url.replace("flv","mp4")+'" id="videoElement" controls="" loop="" poster="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover+'"></video>';
$(".video-play-box").html(html)
var flvUrl=videoList.videos[0].url.replace("mp4","flv")
flvPlay('https://zhibocdn.yabolive.net/comm'+flvUrl+'')
// var flvUrl=videoList.videos[0].url.replace("mp4","flv")
// flvPlay('https://zhibocdn.yabolive.net/comm'+flvUrl+'')
if(data.selfUp==1) var html='<div><img src="images/icon1.png" alt=""><span>'+data.comment+'</span></div><div class="good-box"><img class="good-btn" data-type="1" src="images/icon2-click.png" alt=""><span>'+data.up+'</span></div>';
else var html='<div><img src="images/icon1.png" alt=""><span>'+data.comment+'</span></div><div class="good-box"><img class="good-btn" data-type="0" src="images/icon2.png" alt=""><span>'+data.up+'</span></div>';
$(".video-btn-box").html(html)
......
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