监控视频走nginx格式

prod
吕天方 9 months ago
parent 53149cadf4
commit cea0816322

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2024-01-09 23:08:15
* @LastEditors: JC9527
* @LastEditTime: 2024-05-27 10:16:44
* @LastEditTime: 2024-05-27 14:32:11
-->
<template>
<div class="map-main">
@ -1146,10 +1146,16 @@ export default {
let location = element.location?.split(',');
// obj.imgSrc = element.status == "0" ? offIcon4 : ico5;
if(location) {
obj.position[0] = location[0];
obj.position[1] = location[1];
obj.lnglat = new AMap.LngLat(location.length > 0 ? location[0] : 0 ,location.length > 0 ? location[1] : 0)
lonLat = this.wgs84togcj02(element.longitude,element.latitude);
// obj.position[0] = location[0];
// obj.position[1] = location[1];
obj.position[0] = lonLat ? lonLat[0] : 0;
obj.position[1] = lonLat ? lonLat[1] : 0;
// obj.lnglat = new AMap.LngLat(location.length > 0 ? location[0] : 0 ,location.length > 0 ? location[1] : 0)
obj.lnglat = new AMap.LngLat(lonLat ? lonLat[0] : 0 ,lonLat ? lonLat[1] : 0)
} else {
obj.position[0] = 0;
obj.position[1] = 0;
@ -1234,7 +1240,7 @@ export default {
let obj = {position:[]};
let lonLat;
if(element.longitude && element.latitude) {
lonLat = this.wgs84togcj02(element.longitude,element.latitude);
lonLat = this.wgs84togcj02(element.longitude,element.latitude);
}
// obj.position[0] = element.longitude;
obj.position[0] = lonLat ? lonLat[0] : 0;
@ -1476,7 +1482,10 @@ export default {
getPreviewURLs({protocol:'hls',cameraIndexCode:this.monitoringInfo.info.cameraIndexCode,expand:"transcode=1"}).then(res=>{
if(res.code == 200) {
// console.log(res,'');
this.$refs.aloneVideo.open(res.msg);
// this.$refs.aloneVideo.open(res.msg);
let videoUrl = res.msg;
var code1 = videoUrl.match(/\/openUrl\/(.*)/)[1]
this.$refs.aloneVideo.open(`https://bjh.jndz.cn/bjh-admin-server/jn/videosLive/${code1}`);
}
})
} else {

Loading…
Cancel
Save