1.0.0 • Published 11 months ago

paopao-video-player v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

paopao-video-player


VueJS TailwindCSS

NPM

A modern, visual video player for Vue3. It will bring your videos to life with a customizable and powerful player!

Install

npm install paopao-video-player

Global

import Vue from 'vue'
import PaoPaoVideoPlayer from 'paopao-video-player'

Vue.use(PaoPaoVideoPlayer, /* { default options with global component } */)

Local registration

import PaoPaoVideoPlayer from 'paopao-video-player'

export default {
  components: {
    PaoPaoVideoPlayer
  }
}

Props

NameTypeDefaultDescription
srcstringrequiredSource file
autoplaybooleanfalseVideo played when component is load
loopbooleanfalse Play the video again
controlsbooleantrueDisplay controls
maskbooleantrueDisplay the mask on first load
hoverablebooleantrueDisplay the controls at the hover
colorsString, Array'#fbbf24', '#ec4899'Change colors components
themeStringbasicYou can change theme of component: basic, gradient