|
@@ -195,12 +195,11 @@
|
|
|
const cameras = res.records;
|
|
|
for (let i = 0; i < cameras.length; i++) {
|
|
|
const item = cameras[i];
|
|
|
-
|
|
|
if (item['devicekind'] === 'toHKRtsp' || item['devicekind'] === 'toHKHLs' || item['devicekind'] === 'HLL' || item['devicekind'] === 'YZG_URL') {
|
|
|
// 从海康平台接口获取视频流
|
|
|
const videoType = item['devicekind'] === 'toHKRtsp' ? 'rtsp' : '';
|
|
|
try {
|
|
|
- const data = await cameraAddr({ cameraCode: item['addr'], videoType });
|
|
|
+ const data = await cameraAddr({devicekind:'YZG_URL', cameraCode: item['addr'], videoType });
|
|
|
if (data && data['url']) {
|
|
|
cameraList.push({ name: item['name'], addr: data['url'], cameraRate: item['cameraRate'], devicekind: item['devicekind'] });
|
|
|
}
|
|
@@ -236,7 +235,7 @@
|
|
|
// 从海康平台接口获取视频流
|
|
|
const videoType = item['devicekind'] === 'toHKRtsp' ? 'rtsp' : '';
|
|
|
try {
|
|
|
- const data = await cameraAddr({ cameraCode: item['addr'], videoType });
|
|
|
+ const data = await cameraAddr({devicekind:'YZG_URL', cameraCode: item['addr'], videoType });
|
|
|
if (data && data['url']) {
|
|
|
cameraList.push({ name: item['name'], addr: data['url'], cameraRate: item['cameraRate'], devicekind: item['devicekind'] });
|
|
|
}
|