From a035d06975c9cef97fb296b9a09de6925d81d823 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Tue, 26 Sep 2023 11:12:14 +0800
Subject: [PATCH] 处理视频关闭问题

---
 src/components/Jessibuca/Jessibuca.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/components/Jessibuca/Jessibuca.vue b/src/components/Jessibuca/Jessibuca.vue
index 618d06d..2a98fc4 100644
--- a/src/components/Jessibuca/Jessibuca.vue
+++ b/src/components/Jessibuca/Jessibuca.vue
@@ -3,7 +3,7 @@
 </template>
 
 <script setup lang="ts">
-import { onMounted, onUnmounted, ref, defineProps } from 'vue'
+import { onMounted, onUnmounted, ref, defineProps, defineEmits } from 'vue'
 import Jessibuca from '../../../public/jessibuca/jessibuca'
 const props = defineProps({
   videoUrl: {
@@ -19,6 +19,7 @@
     default: '200px'
   }
 })
+const emits = defineEmits(['timeout'])
 let jessibuca: null | Jessibuca = null
 const container = ref(null)
 const buffer = ref(null)
@@ -107,6 +108,7 @@
 
   jessibuca.on('timeout', function () {
     console.log('timeout')
+    emits('timeout')
   })
 
   jessibuca.on('start', function () {

--
Gitblit v1.9.3