Compare commits

..

No commits in common. "4259e48c7012b6c94498fdad1104f2b7f4ec5eab" and "1e3aa7db5a1c63ac6bdba846fcf39d50085c233e" have entirely different histories.

5 changed files with 18 additions and 84 deletions

View File

@ -116,22 +116,11 @@ export function getPlaceType() {
//西
export function CameraConditionPlaceType(params) {
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
)
return axios.post(
'http://10.134.135.92:9537/data_service/getCamera/CameraConditionPlaceType',
params,
config2
)
}
// 西-- (10.134.135.92:9537)
let _cameraUrl =

View File

@ -1734,9 +1734,8 @@ export function MapFun(mapObj) {
// })
// }
marker.on('click', e => {
//console.log('', e)
//console.log('1', e.sourceTarget.resourceData)
clickDataList.push(e.sourceTarget.resourceData);
console.log('点位数据', e)
clickDataList.push(e.resourceData);
// marker
//const layers = layerGroup.get(layerName).getLayers()
// layers.forEach((layer) => {

View File

@ -7,7 +7,6 @@
<script>
const IS_MOVE_DEVICE = document.body.clientWidth < 992 //
const MSE_IS_SUPPORT = !!window.MediaSource // mse
import { message } from 'ant-design-vue'
export default {
name: 'H5Player',
props: {
@ -58,20 +57,8 @@ import { message } from 'ant-design-vue'
this.createPlayer()
this.arrangeWindow()
//videoUrl this.realplay(this.videoUrl,0);//index
this.realplay(this.videoUrl,0);
//this.realplay('wss://10.134.135.44:6014/proxy/10.10.20.14:559/openUrl/y3mFfcA',0);
this.realplay('wss://10.134.135.44:6014/proxy/10.10.20.14:559/openUrl/y3mFfcA',0);
},
watch: {
videoUrl: {
//
handler(newVal, oldVal) {
console.log('oldVal:', oldVal)
console.log('newVal:', newVal)
},
//
immediate: true
}
},
methods: {
//
init () {
@ -140,10 +127,7 @@ import { message } from 'ant-design-vue'
() => {
console.log('realplay success')
},
e => {
console.error(e);
message.error('请联系视频提供方!')
}
e => { console.error(e) }
)
},
//

View File

@ -28,11 +28,11 @@
<h5-player :video-url="videoUrl"></h5-player>
</div>
<div class="text-label">
<span>{{defaultIndex+1}}</span>/<span>{{cameraDataList.length}}</span>
<span>{{defaultIndex}}</span>/<span>{{cameraDataList.length}}</span>
</div>
<div class="footer-button">
<a-button type="primary" @click="applyNow(cameraDataList[defaultIndex])">立即申请</a-button>
<a-button type="primary" style="margin-left:20px" @click="addIntoCart(cameraDataList[defaultIndex])">加入申购车</a-button>
<a-button type="primary" @click="applyNow(url)">立即申请</a-button>
<a-button type="primary" style="margin-left:20px" @click="addIntoCart(url)">加入申购车</a-button>
</div>
</div>
</div>
@ -46,11 +46,9 @@
LeftCircleOutlined,
RightCircleOutlined,
} from '@ant-design/icons-vue'
import { useRouter } from 'vue-router'
import H5Player from '@/views/home/components/H5Player.vue'
import mybus from '@/myplugins/mybus'
import { getStreamByChannelCode } from '@/api/videoSurveillance'
import {getCameraLiveStream} from '@/api/file'
export default {
name: '',
components: {
@ -67,9 +65,7 @@
},
},
},
mounted() {
this.getVideoUrl(this.cameraDataList[this.defaultIndex]);
},
mounted() {},
// directives: {
// viewer: viewer({
// debug: true,
@ -80,8 +76,7 @@
openVideo: false,
videoStream: '',
videoUrl:'', //url
defaultIndex:0,//
router:useRouter()
defaultIndex:0//
}
},
methods: {
@ -95,59 +90,32 @@
//
applyNow(item){
console.log('applyNowapplyNow',item);
//
this.router.push({
path: '/apply',
query: {
},
})
mybus.emit('selectCamera', item)
},
//
addIntoCart(item){
console.log('addIntoCartaddIntoCart',item);
mybus.emit('selectCamera', item)
},
//
getVideoUrl(data){
let param = data;
getCameraLiveStream(param).then((res) => {
//console.log('555555rrrrr',res)
if(res.data.data){
this.videoUrl = res.data.data.url;
}
//visible.value = true
//options.src = res.data.data
//options.src ="wss://10.134.135.45:6014/proxy/10.10.20.15:559/openUrl/0kIF7La"
})
},
//
handlePrev(){
let maxLength = this.cameraDataList.length-1;
this.defaultIndex = this.defaultIndex - 1;
console.log('opopopop',this.cameraDataList[maxLength]);
if(this.defaultIndex === 0){
this.defaultIndex = maxLength;
console.log('opopopop',this.cameraDataList[maxLength]);
//channelIdurlH5
//this.videoUrl =
this.getVideoUrl(this.cameraDataList[maxLength]);
} else{
this.defaultIndex = this.defaultIndex - 1;
console.log('uyutyuyopopopop',this.cameraDataList[this.defaultIndex]);
this.getVideoUrl(this.cameraDataList[this.defaultIndex]);
}
},
//
handleNext(){
this.defaultIndex = this.defaultIndex + 1;
if(this.defaultIndex === this.cameraDataList.length){
this.defaultIndex = this.cameraDataList.length;
console.log('opopopop',this.cameraDataList[0]);
this.getVideoUrl(this.cameraDataList[0]);
console.log('opopopop',this.cameraDataList[0]);
}else{
this.defaultIndex = this.defaultIndex + 1;
console.log('opopopop',this.cameraDataList[this.defaultIndex]);
this.getVideoUrl(this.cameraDataList[this.defaultIndex]);
}
}

View File

@ -224,12 +224,6 @@ import { ElMessage } from 'element-plus'
this.queryCameraConditionPlace(data)
})
//
mybus.off('clearLeftSelect')
mybus.on('clearLeftSelect', () => {
this.hiMapFun.clearAllLayers();
})
},
methods: {
//