|
|
@@ -6,7 +6,6 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { onMounted, onBeforeUnmount, watch } from 'vue';
|
|
|
- import flvjs from 'flv.js';
|
|
|
import mpegts from 'mpegts.js';
|
|
|
|
|
|
const props = defineProps<{
|
|
|
@@ -30,7 +29,7 @@
|
|
|
);
|
|
|
player.attachMediaElement(videoElement);
|
|
|
player.load();
|
|
|
- player.on(flvjs.Events.MEDIA_INFO, () => {
|
|
|
+ player.on(mpegts.Events.MEDIA_INFO, () => {
|
|
|
// testStore.setVideoReady(true);
|
|
|
});
|
|
|
// player.play();
|