This commit is contained in:
AceDataCloud committed 2022-04-04 16:11:01 +08:00
1 parent f225debe34
commit d1f7b0fe5f
23 files changed
+1054 -362

No files matched your search

+7 -7
View File
@@ -1,6 +1,6 @@
<template>
<vue-plyr :options="options" ref="plyr">
<video controls playsinline :data-poster="preview" ref="video"></video>
<vue-plyr ref="plyr" :options="options">
<video ref="video" controls playsinline :data-poster="preview"></video>
</vue-plyr>
</template>
@@ -27,16 +27,16 @@ export default defineComponent({
type: String
}
},
data(): IData {
return {
options: {}
};
},
mounted() {
const video = this.$refs.video as HTMLMediaElement;
const hls = new Hls();
hls.loadSource(this.resource);
hls.attachMedia(video);
},
data(): IData {
return {
options: {}
};
}
});
</script>