eager-video-player
v1.2.0
Published
A vue 3 component to display our video in custom video player (customizable with multi themes)
Downloads
8
Maintainers
Readme
eager-video-player
A modern, visual video player for Vue3. It will bring your videos to life with a customizable and powerful player!
Install
npm install eager-video-player
Global
import Vue from 'vue'
import EagerVideoPlayer from 'eager-video-player'
Vue.use(EagerVideoPlayer /* { default options with global component } */)
Local registration
import EagerVideoPlayer from 'eager-video-player'
export default {
components: {
EagerVideoPlayer
}
}
Props
| Name | Type | Default | Description | | --------- | :-----------: | ---------------------: | -------------------------------------------------: | | src | string | required | Source file | | autoplay | boolean | false | Video played when component is load | | loop | boolean | false | Play the video again | | controls | boolean | true | Display controls | | mask | boolean | true | Display the mask on first load | | hoverable | boolean | true | Display the controls at the hover | | colors | String, Array | ['#fbbf24', '#ec4899'] | Change colors components | | theme | String | basic | You can change theme of component: basic, gradient |