This is a html5 video component made in VueJS with to quickly add videos with placeholders and intros.
poster
to show a image placeholder before videovideo-placeholder-src
to autoplay a video without soundpreview-on-mouse
add option to alter between poster and video-preview (youtube like)https://algoz098.github.io/vue-player/
Install it
npm i --save @algoz098/vue-player
Then you import it where you need to use it.
import vuePlayer from '@algoz098/vue-player'
Now, just tell vue to use it:
Vue.component(vuePlayer)
Or inside a ´.vue´ file:
<script>
export default {
components: {
vuePlayer
}
}
</script>
Now, just use it:
<vue-player src="http://techslides.com/demos/sample-videos/small.mp4" poster="https://via.placeholder.com/150" title="this is a title" v-model="playing"></vue-player>
You can see more information here
All contribution are wellcome, and every pull request will be seen. Thank you for your time!