|
@@ -163,8 +163,6 @@ export default {
|
|
this.setTimeoutId = setTimeout(() => {
|
|
this.setTimeoutId = setTimeout(() => {
|
|
console.log("延迟暂停");
|
|
console.log("延迟暂停");
|
|
|
|
|
|
- this.player.pause() //暂停
|
|
|
|
-
|
|
|
|
if (document.exitFullscreen) {
|
|
if (document.exitFullscreen) {
|
|
document.exitFullscreen();
|
|
document.exitFullscreen();
|
|
} else if (document.mozCancelFullScreen) {
|
|
} else if (document.mozCancelFullScreen) {
|
|
@@ -184,13 +182,9 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.getBannerInfo();
|
|
this.getBannerInfo();
|
|
}
|
|
}
|
|
-
|
|
|
|
- setTimeout(() => {
|
|
|
|
- if (this.isLoading2) {
|
|
|
|
- this.hls.stopLoad();
|
|
|
|
- this.isLoading3 = true; //需要刷新;
|
|
|
|
- }
|
|
|
|
- }, 1000 * 60 * 1)
|
|
|
|
|
|
+ this.player.pause() //暂停
|
|
|
|
+ this.isLoading3 = true; //需要刷新;
|
|
|
|
+ this.hls.stopLoad();
|
|
|
|
|
|
}, 1000 * 60 * 10)
|
|
}, 1000 * 60 * 10)
|
|
}
|
|
}
|
|
@@ -212,7 +206,6 @@ export default {
|
|
//this.player.play();
|
|
//this.player.play();
|
|
console.log("ios原生支持播放m3u8!");
|
|
console.log("ios原生支持播放m3u8!");
|
|
} else {
|
|
} else {
|
|
- this.player.addEventListener('play', this.handlePlay);
|
|
|
|
|
|
|
|
var hls = new Hls();
|
|
var hls = new Hls();
|
|
hls.loadSource(this.liveAddressUrl);
|
|
hls.loadSource(this.liveAddressUrl);
|
|
@@ -223,6 +216,7 @@ export default {
|
|
});
|
|
});
|
|
this.hls = hls;
|
|
this.hls = hls;
|
|
}
|
|
}
|
|
|
|
+ this.player.addEventListener('play', this.handlePlay);
|
|
|
|
|
|
},
|
|
},
|
|
cameraDetail() {
|
|
cameraDetail() {
|