修改默认条数
This commit is contained in:
parent
0e455b24a2
commit
0ba2fe60ea
|
|
@ -31,11 +31,21 @@ layui.config({
|
||||||
puid = puid.substring(0, puid.length - 2);
|
puid = puid.substring(0, puid.length - 2);
|
||||||
if (puid) {
|
if (puid) {
|
||||||
parent.layer.msg("视频加载中,请稍候...", { icon: 16, scrollbar: false, time: 1000, });
|
parent.layer.msg("视频加载中,请稍候...", { icon: 16, scrollbar: false, time: 1000, });
|
||||||
|
let puidCz=true;
|
||||||
|
for (let i = 0; i < playList.length; i++) {
|
||||||
|
if( playList[i].puid==puid){
|
||||||
|
puidCz=false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(puidCz){
|
||||||
let newobj=getPlay(puid,getWindBox(),0);
|
let newobj=getPlay(puid,getWindBox(),0);
|
||||||
playList.push(newobj);
|
playList.push(newobj);
|
||||||
|
playVideList();
|
||||||
|
}
|
||||||
|
|
||||||
console.log("4444");
|
console.log("4444");
|
||||||
console.log(playList);
|
console.log(playList);
|
||||||
playVideList();
|
|
||||||
// QXPlayVideo(puid, '0', winDom)
|
// QXPlayVideo(puid, '0', winDom)
|
||||||
// playControl();
|
// playControl();
|
||||||
videoObject.devCode = puid;
|
videoObject.devCode = puid;
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,8 @@ function loadVideoTree() {
|
||||||
item.title = '<img src="../../img/video/ball_online.png"><span data-mtpis="'+item.title+'">' + titleName + '</span>'
|
item.title = '<img src="../../img/video/ball_online.png"><span data-mtpis="'+item.title+'">' + titleName + '</span>'
|
||||||
if(isPlay){
|
if(isPlay){
|
||||||
let puid = item.id.replace('QJ', '').split("-")[0];
|
let puid = item.id.replace('QJ', '').split("-")[0];
|
||||||
|
|
||||||
|
|
||||||
playList.push(getPlay(puid,winDom,0));
|
playList.push(getPlay(puid,winDom,0));
|
||||||
playVideList();
|
playVideList();
|
||||||
// QXPlayVideo(puid, '0', winDom)
|
// QXPlayVideo(puid, '0', winDom)
|
||||||
|
|
@ -98,10 +100,16 @@ function fourVideo(){
|
||||||
}
|
}
|
||||||
|
|
||||||
nowDmoScree=4;
|
nowDmoScree=4;
|
||||||
console.log(nowDmoScree);
|
//console.log(nowDmoScree);
|
||||||
if(playList.length>nowDmoScree){
|
// if(playList.length>nowDmoScree){
|
||||||
playList=playList.slice(-nowDmoScree);
|
// playList=playList.slice(-nowDmoScree);
|
||||||
|
// }
|
||||||
|
while (playList.length > nowDmoScree) {
|
||||||
|
console.log(playList[0].windBox)
|
||||||
|
destoryVideo(playList[0].flvPlayer);
|
||||||
|
playList.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 0; i <playList.length ; i++) {
|
for (let i = 0; i <playList.length ; i++) {
|
||||||
QXPlayVideo(playList[i].puid, '0', playList[i].windBox);
|
QXPlayVideo(playList[i].puid, '0', playList[i].windBox);
|
||||||
playControl();
|
playControl();
|
||||||
|
|
|
||||||
|
|
@ -98,13 +98,13 @@ function QXPlayVideo(puId, idx, dom) {
|
||||||
flvPlayer.attachMediaElement(videoElement);
|
flvPlayer.attachMediaElement(videoElement);
|
||||||
flvPlayer.load();
|
flvPlayer.load();
|
||||||
//init3D();
|
//init3D();
|
||||||
// flvPlayer.on(flvjs.Events.ERROR, (errorType, errorDetail, errorInfo) => {
|
flvPlayer.on(flvjs.Events.ERROR, (errorType, errorDetail, errorInfo) => {
|
||||||
// if (flvPlayer) {
|
if (flvPlayer) {
|
||||||
// //播放失败销毁窗口
|
//播放失败销毁窗口
|
||||||
// destoryVideo(flvPlayer);
|
destoryVideo(flvPlayer);
|
||||||
// videoObject.playState = false;
|
videoObject.playState = false;
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
|
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue