Compare commits

...

2 Commits

Author SHA1 Message Date
Ironsp
bacbb84d54 feat 引入hls 2026-05-25 16:39:24 +08:00
Ironsp
da54e9db8d feat 引入hls 2026-05-25 16:37:31 +08:00
3 changed files with 3 additions and 5 deletions

View File

@@ -5,10 +5,6 @@
"ComputedRef": true, "ComputedRef": true,
"DirectiveBinding": true, "DirectiveBinding": true,
"EffectScope": true, "EffectScope": true,
"ElLoading": true,
"ElMessage": true,
"ElMessageBox": true,
"ElNotification": true,
"ExtractDefaultPropTypes": true, "ExtractDefaultPropTypes": true,
"ExtractPropTypes": true, "ExtractPropTypes": true,
"ExtractPublicPropTypes": true, "ExtractPublicPropTypes": true,

View File

@@ -32,6 +32,7 @@
"element-plus": "2.13.5", "element-plus": "2.13.5",
"file-saver": "2.0.5", "file-saver": "2.0.5",
"highlight.js": "11.11.1", "highlight.js": "11.11.1",
"hls.js": "^1.6.16",
"image-conversion": "2.1.1", "image-conversion": "2.1.1",
"js-cookie": "3.0.5", "js-cookie": "3.0.5",
"jsencrypt": "3.5.4", "jsencrypt": "3.5.4",

View File

@@ -137,6 +137,7 @@ import { EquipmentList, DeviceInfoForm, AlarmAreaData } from '@/api/equipmentLis
import { listDemo, getDemo, delDemo, addDemo, updateDemo } from '@/api/demo/demo'; import { listDemo, getDemo, delDemo, addDemo, updateDemo } from '@/api/demo/demo';
import { DemoVO, DemoQuery, DemoForm } from '@/api/demo/demo/types'; import { DemoVO, DemoQuery, DemoForm } from '@/api/demo/demo/types';
import { log } from 'node:console'; import { log } from 'node:console';
import Hls from 'hls.js';
const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -316,7 +317,6 @@ const resetMonitorDraw = () => {
monitorDrawPoints.value = []; monitorDrawPoints.value = [];
monitorRectPx.value = null; monitorRectPx.value = null;
}; };
const handleSee = async (row?: any) => { const handleSee = async (row?: any) => {
reset(); reset();
resetMonitorDraw(); resetMonitorDraw();
@@ -327,6 +327,7 @@ const handleSee = async (row?: any) => {
dialog1.visible = true; dialog1.visible = true;
dialog1.title = '修改设备'; dialog1.title = '修改设备';
}; };
const handleMonitorDialogClose = (done: () => void) => { const handleMonitorDialogClose = (done: () => void) => {
monitorVideoRef.value?.pause(); monitorVideoRef.value?.pause();
monitorVideoRef.value && (monitorVideoRef.value.currentTime = 0); monitorVideoRef.value && (monitorVideoRef.value.currentTime = 0);