Commit c001e402 by 李乾广

xiug bug

1 parent 06a2ad95
......@@ -129,7 +129,19 @@ export default {
});
// this.params = obj
console.log(this.params)
//利用iframe的onload事件刷新页面
document.title = this.params.gateName||'视频详情'
var iframe = document.createElement('iframe');
iframe.style.visibility = 'hidden';
iframe.style.width = '1px';
iframe.style.height = '1px';
iframe.onload = function () {
setTimeout(function () {
document.body.removeChild(iframe);
}, 0);
};
document.body.appendChild(iframe);
this.params.ptzEnable = ''+this.params.ptzEnable
this.terminalType = this.params.terminalType
this.dateFormatType = this.terminalType == 'ios'||this.terminalType == 'mac' ? 'YYYY/MM/DD':'YYYY-MM-DD';
......@@ -153,6 +165,22 @@ export default {
getVideoAddress(startTime,stopTime) {
let par = {
gateUnid: this.params.gateUnid,
// appKey: this.params.appKey,
// playbackSpeed: 1,
startTime:startTime?startTime:null,
stopTime:stopTime?stopTime:null,
}
// 加密
// let parStr = this.aesEncrypt(par)
tourApi.getLiveAndPlaybackAddress(par).then(res => {
if (res.data&&res.data.code == 200) {
this.$refs.vionPlayer.play(res.data.msg);
} else {
Toast.fail('取流失败');
}
})
/* let par = {
gateUnid: this.params.gateUnid,
appKey: this.params.appKey,
playbackSpeed: 1,
startTime:startTime?startTime:null,
......@@ -166,7 +194,7 @@ export default {
} else {
Toast.fail('取流失败');
}
})
}) */
},
//加密
aesEncrypt (obj){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!