@@ -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 播放');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user