feat 直播流点位

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-05-26 09:54:16 +08:00
parent 988cf99a03
commit 0b2606bdf4
5 changed files with 53 additions and 21 deletions

View File

@@ -1,6 +1,5 @@
import Hls from 'hls.js';
let hlsInstance: Hls | null = null;
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
export const initHls = (monitorVideoUrl, monitorVideoRef) => {
const url = monitorVideoUrl.value;
@@ -37,7 +36,8 @@ export const initHls = (monitorVideoUrl, monitorVideoRef) => {
} catch (e) {}
});
} else {
proxy?.$modal.msgWarning('当前浏览器不支持 HLS 播放');
//proxy?.$modal.msgWarning('当前浏览器不支持 HLS 播放');
ElMessage.error('当前浏览器不支持 HLS 播放');
}
};