algoz098 / vue-player

A hml5 video player vue component
23 stars 12 forks source link

vue-player

Intro

This is a html5 video component made in VueJS with to quickly add videos with placeholders and intros.

Features

Examples

https://algoz098.github.io/vue-player/

Usage & Guide

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

Contribution

All contribution are wellcome, and every pull request will be seen. Thank you for your time!