mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Close stream when pausing
This commit is contained in:
parent
dca6bfb9d6
commit
55f3e3aeae
@ -63,6 +63,11 @@ export default function MsePlayer({ camera, width, height }) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
video.onpause = () => {
|
||||||
|
ws.close();
|
||||||
|
video.src = null;
|
||||||
|
}
|
||||||
}, [url]);
|
}, [url]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user