fix lint
This commit is contained in:
1 parent
f225debe34
commit
d1f7b0fe5f
23 files changed
+1054
-362
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user