guoshilong
2023-11-13 54849757852f6ab40eb17afbd03d1d839b60a38d
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 () {