Commit 0a2d60b9 by libai

测试

parent 026a1274
...@@ -480,7 +480,8 @@ $(function () { ...@@ -480,7 +480,8 @@ $(function () {
var sendType=1; var sendType=1;
var guardShowOk=null; var guardShowOk=null;
var richType=1 var richType=1
var layzT=true; var layzT=true;3
$(window).on("scroll",function(){ $(window).on("scroll",function(){
if(layzT==true){ if(layzT==true){
layzT=false layzT=false
...@@ -622,6 +623,8 @@ $(function () { ...@@ -622,6 +623,8 @@ $(function () {
if (promise !== undefined) { if (promise !== undefined) {
promise.then(_ => { promise.then(_ => {
var html = []; 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>'; 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) $(".live-content-box-left-roombox").html(html)
flvPlay(data.pullFlowUrl) flvPlay(data.pullFlowUrl)
......
...@@ -226,10 +226,10 @@ $(function(){ ...@@ -226,10 +226,10 @@ $(function(){
} }
$(".video-tag-box").html(html); $(".video-tag-box").html(html);
var 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) $(".video-play-box").html(html)
var flvUrl=videoList.videos[0].url.replace("mp4","flv") // var flvUrl=videoList.videos[0].url.replace("mp4","flv")
flvPlay('https://zhibocdn.yabolive.net/comm'+flvUrl+'') // 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>'; 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>'; 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) $(".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