Sleep

Vue. js wrapper for Vimeo Embed Player

.Vue.js cover for Vimeo player.The Vue-vimeo-player is a Vue.js wrapper for the Vimeo Embed Gamer, which permits you to utilize the Vimeo player as a Vue part easily, despite Nuxt.js SSR.Have a look at the example below.Example.To begin partnering with the Vue vimeo gamer utilize the adhering to command to install it.npm set up vue-vimeo-player-- spare.OR.anecdote incorporate vue-vimeo-player.of tons it via CDN.If utilized as a worldwide part.bring in Vue from 'vue'.bring in vueVimeoPlayer from 'vue-vimeo-player'.Vue.use( vueVimeoPlayer).If utilized as a regional component.// In a part.bring in vueVimeoPlayer coming from 'vue-vimeo-player'.export default ,.elements: vueVimeoPlayer-|-|-|-random-}For utilization with Nuxt.js feel free to recommend listed here.Props.player-width: String or Variety, nonpayment 100%.player-height: Strand or Number, nonpayment 320.options: Object - possibilities to pass to Vimeo.Player.video-id: Strand, called for.loop: Boolean.autoplay: Boolean.Techniques.upgrade( videoID): Creates the Vimeo player with the supplied i.d..play().time out().mute().unmute().Occasions.Activities gave off from the component.The prepared celebration merely passes the player instance.
If you are actually interested for additional or you possess any kind of insects as well as tips, go here. That's it!Created and sent through @dmhristov.

Articles You Can Be Interested In