Commit 4060731f authored by xxx's avatar xxx

1

parent ff995d78
...@@ -184,8 +184,8 @@ export default { ...@@ -184,8 +184,8 @@ export default {
item.hls.loadSource(item.url) item.hls.loadSource(item.url)
item.hls.attachMedia(that.$refs[item.ref][0]); item.hls.attachMedia(that.$refs[item.ref][0]);
item.hls.on(Hls.Events.MANIFEST_PARSED,function() { item.hls.on(Hls.Events.MANIFEST_PARSED,function() {
      that.$refs[item.ref][0].play(); that.$refs[item.ref][0].play();
    }); });
}) })
}) })
...@@ -203,8 +203,8 @@ export default { ...@@ -203,8 +203,8 @@ export default {
item.hls.loadSource(item.url) item.hls.loadSource(item.url)
item.hls.attachMedia(that.$refs[item.ref][0]); item.hls.attachMedia(that.$refs[item.ref][0]);
item.hls.on(Hls.Events.MANIFEST_PARSED,function() { item.hls.on(Hls.Events.MANIFEST_PARSED,function() {
      that.$refs[item.ref][0].play(); that.$refs[item.ref][0].play();
    }); });
}) })
}) })
...@@ -319,11 +319,11 @@ export default { ...@@ -319,11 +319,11 @@ export default {
if(!res){ if(!res){
let noPtzVideo = document.getElementById('noPtzVideo'); let noPtzVideo = document.getElementById('noPtzVideo');
noPtzhls = new Hls(); noPtzhls = new Hls();
    noPtzhls.loadSource(data.url); noPtzhls.loadSource(data.url);
    noPtzhls.attachMedia(noPtzVideo); noPtzhls.attachMedia(noPtzVideo);
    noPtzhls.on(Hls.Events.MANIFEST_PARSED,function() { noPtzhls.on(Hls.Events.MANIFEST_PARSED,function() {
noPtzVideo.play(); noPtzVideo.play();
    }); });
this.isChildren1 = false; this.isChildren1 = false;
this.isChildren2 = false; this.isChildren2 = false;
this.isChildren3 = false; this.isChildren3 = false;
......
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 to comment