Commit c15fa3f3 authored by 耿迪迪's avatar 耿迪迪

鸿海视频

parent a8442a80
import request from '@/utils/request'
/**
* api根地址
* @type {{"1": "华鑫", "2": "鸿海"}}
*/
const apiBaseConfig = {
'1': "/artemis",
'2': "/honghai/artemis"
};
// 查询视频地址
export function getPreviewURLs(query) {
export function getPreviewURLs(query,type='1') {
return request({
url: '/artemis/getPreviewURLs',
url: apiBaseConfig[type] + '/getPreviewURLs',
method: 'get',
params: query
})
}
// 云台控制
export function videoControlling(query) {
export function videoControlling(query,type='1') {
return request({
url: '/artemis/videoControlling',
url: apiBaseConfig[type] + '/videoControlling',
method: 'get',
params: query
})
}
......@@ -126,7 +126,7 @@ export default {
playVideo(data) {
this.videoName = data.videoName;
this.cameraIndexCode = data.videoResource;
getPreviewURLs({ cameraIndexCode: data.videoResource }).then((response) => {
getPreviewURLs({ cameraIndexCode: data.videoResource },data.videoType).then((response) => {
if (response.data.code == "0") {
this.videoOpenNum++;
let url = response.data.data.url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment