get ingress to play nice with vite

This commit is contained in:
Blake Blackshear
2022-05-19 07:31:02 -05:00
parent 7b2b5bfa71
commit ca7bad8909
6 changed files with 12 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ import JSMpeg from '@cycjimmy/jsmpeg-player';
export default function JSMpegPlayer({ camera, width, height }) {
const playerRef = useRef();
const url = `${baseUrl.replace(/^http/, 'ws')}/live/${camera}`;
const url = `${baseUrl.replace(/^http/, 'ws')}live/${camera}`;
useEffect(() => {
const video = new JSMpeg.VideoElement(