We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329b832 commit c729e52Copy full SHA for c729e52
ui/src/components/VideoStream.vue
@@ -1,6 +1,6 @@
1
<script setup lang="ts">
2
import Hls from 'hls.js';
3
-import { onMounted, ref } from 'vue';
+import { onMounted, onUnmounted, ref } from 'vue';
4
5
const video = ref(null);
6
@@ -26,6 +26,9 @@ onMounted(() => {
26
elVideo.play();
27
});
28
29
+ onUnmounted(() => {
30
+ hls.destroy();
31
+ });
32
} else if (elVideo.canPlayType('application/vnd.apple.mpegurl')) {
33
elVideo.src = props.source;
34
elVideo.addEventListener('loadedmetadata',function() {
0 commit comments