From c619d24cf90debb474f13c4c3ada1a05c40677fe Mon Sep 17 00:00:00 2001 From: chenchenzai Date: Mon, 21 Nov 2022 20:32:28 +0800 Subject: [PATCH] =?UTF-8?q?h5player=E6=92=AD=E6=94=BE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/api/file.js | 21 ++++++-- front/src/supermap/advance-init.js | 5 +- front/src/views/home/components/H5Player.vue | 20 +++++++- .../components/CameraPopupOnMap.vue | 50 +++++++++++++++---- .../views/home/videoSurveillance/index.vue | 6 +++ 5 files changed, 84 insertions(+), 18 deletions(-) diff --git a/front/src/api/file.js b/front/src/api/file.js index 094e0c4d..278aee62 100644 --- a/front/src/api/file.js +++ b/front/src/api/file.js @@ -116,11 +116,22 @@ export function getPlaceType() { //西海岸 根据标签树查询视频列表 export function CameraConditionPlaceType(params) { - return axios.post( - 'http://10.134.135.92:9537/data_service/getCamera/CameraConditionPlaceType', - params, - config2 - ) + return axios.post( + 'http://10.134.135.92:9537/data_service/getCamera/CameraConditionPlaceType' + + params, + config2 + ) +} + +// 西海岸视频wss流获取 +export function getCameraLiveStream(params) { + return axios.get( + 'http://10.134.135.92:9537/data_service/getCamera/getCameraLiveStream?cameraIndexCode=' + + params.channelId + + '&protocol=' + + 'wss' + '&transmode=1&streamType=1', + config2 + ) } // 西海岸--获取摄像头列表的后台地址 (测试环境地址:10.134.135.92:9537) let _cameraUrl = diff --git a/front/src/supermap/advance-init.js b/front/src/supermap/advance-init.js index 6068870d..6e28c3c6 100644 --- a/front/src/supermap/advance-init.js +++ b/front/src/supermap/advance-init.js @@ -1734,8 +1734,9 @@ export function MapFun(mapObj) { // }) // } marker.on('click', e => { - console.log('点位数据', e) - clickDataList.push(e.resourceData); + //console.log('点位数据', e) + //console.log('点位数据1', e.sourceTarget.resourceData) + clickDataList.push(e.sourceTarget.resourceData); // 判断是否需要选中之后更换marker的图标 //const layers = layerGroup.get(layerName).getLayers() // layers.forEach((layer) => { diff --git a/front/src/views/home/components/H5Player.vue b/front/src/views/home/components/H5Player.vue index 6ace8674..ccb06eb6 100644 --- a/front/src/views/home/components/H5Player.vue +++ b/front/src/views/home/components/H5Player.vue @@ -7,6 +7,7 @@