Commit b5ba3271 by 李乾广

修改bug

1 parent 0ae8d46b
......@@ -150,6 +150,8 @@ export default {
// 断线重连
playerIns.on(JessibucaPro.EVENTS.playFailedAndPaused, (e) => {
console.log('playFailedAndPaused', e);
let isOnlyBack = window.localStorage.getItem('isOnlyBack')
if(isOnlyBack&&isOnlyBack>0) {
let isLoad = window.localStorage.getItem('isLoad')
if(isLoad&&isLoad>0) {
window.localStorage.setItem('isLoad',0)
......@@ -157,6 +159,7 @@ export default {
window.localStorage.setItem('isLoad',1)
window.location.reload();
}
}
// this.replay();
});
......@@ -192,7 +195,7 @@ export default {
this._jessibuca.playback(url, getPlaybackConfig());
this.playerType = 'playback';
} else {
this._jessibuca.play(url+'123');
this._jessibuca.play(url);
this.playerType = 'live';
}
this.playOriginUrl = url;
......
<template>
<div class="extension-page">
<div class="j-player-wrapper">
<div class="description-text" v-if="params.description">{{params.description}}</div>
<vion-player ref="vionPlayer" :watermarkText="params.watermarkText" :watermarkOpacity="params.watermarkOpacity" :hideControls="false" :showPtz="false" :isXCXPage="true" @magnificationChange="magnificationChange"/>
</div>
<!-- 时间线组件 -->
......@@ -49,6 +50,7 @@ export default {
userKey:'',
restaurantId:'',
playbackTime:'',
description:'',
},
panTiltList:{
up:0,
......@@ -152,6 +154,7 @@ export default {
this.dateFormatType = this.terminalType == 'ios'||this.terminalType == 'mac' ? 'YYYY/MM/DD':'YYYY-MM-DD';
if(this.params.gateUnid) {
if(this.params.playbackTime) {
window.localStorage.setItem('isOnlyBack',1)
let playbackTime = moment(this.params.playbackTime).format('YYYY-MM-DD HH:mm:ss')
let nowTime = moment(this.params.playbackTime).format('YYYY-MM-DD 23:59:59')
this.getVideoAddress(playbackTime,nowTime)
......@@ -159,6 +162,7 @@ export default {
this.$refs.videoTimeRef.initBackTime(playbackTime);
})
} else {
window.localStorage.setItem('isOnlyBack',0)
this.getVideoAddress()
}
}
......@@ -261,9 +265,9 @@ export default {
}, 5000);
// 跳转页面
// 测试环境
const strUrl = `http://dining-sit.huian365.com/camera/CameraReport?userKey=${this.params.userKey}&restaurantId=${this.params.restaurantId}&imgUrl=${encodeURIComponent(res.data.data)}`
// const strUrl = `http://dining-sit.huian365.com/camera/CameraReport?userKey=${this.params.userKey}&restaurantId=${this.params.restaurantId}&imgUrl=${encodeURIComponent(res.data.data)}`
// 生产环境
// const strUrl = `https://dining.huian365.com/camera/CameraReport?userKey=${this.params.userKey}&restaurantId=${this.params.restaurantId}&imgUrl=${encodeURIComponent(res.data.data)}`
const strUrl = `https://dining.huian365.com/camera/CameraReport?userKey=${this.params.userKey}&restaurantId=${this.params.restaurantId}&imgUrl=${encodeURIComponent(res.data.data)}`
window.location.href = strUrl
}else {
this.$message({
......@@ -303,5 +307,18 @@ export default {
height: 16px;
z-index: 1000;
}
.description-text{
position: absolute;
z-index: 100;
top:15px;
right:0px;
background: rgba(255,0,0,0.4);
color: #fff;
padding:0px 10px;
height: 30px;
line-height: 30px;
font-size: 13px;
// border-top-left-radius: 5px;
// border-bottom-left-radius: 5px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!