add player
This commit is contained in:
1 parent
fdae3fa1c2
commit
f418ed47da
7 files changed
+105
-5
No files matched your search
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<vue-plyr :options="options">
|
||||
<video controls playsinline :data-poster="preview">
|
||||
<source size="1080" :src="resource" type="video/mp4" />
|
||||
</video>
|
||||
</vue-plyr>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import VuePlyr from 'vue-plyr';
|
||||
import 'vue-plyr/dist/vue-plyr.css';
|
||||
|
||||
interface IData {
|
||||
options: {};
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
VuePlyr
|
||||
},
|
||||
props: {
|
||||
resource: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
preview: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
options: {}
|
||||
};
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user