Sleep

Vue. js cover for Vimeo Embed Player

.Vue.js wrapper for Vimeo gamer.The Vue-vimeo-player is a Vue.js wrapper for the Vimeo Embed Player, which enables you to use the Vimeo gamer as a Vue component easily, despite having Nuxt.js SSR.Check out at the example below.Example.To start dealing with the Vue vimeo player utilize the following demand to install it.npm set up vue-vimeo-player-- conserve.OR.yarn include vue-vimeo-player.of lots it by means of CDN.If utilized as a global component.bring in Vue from 'vue'.bring in vueVimeoPlayer from 'vue-vimeo-player'.Vue.use( vueVimeoPlayer).If utilized as a nearby component.// In a component.import vueVimeoPlayer coming from 'vue-vimeo-player'.export default ,.components: vueVimeoPlayer-|-|-|-random-}For usage with Nuxt.js satisfy recommend right here.Props.player-width: Cord or Number, nonpayment one hundred%.player-height: String or Variety, default 320.possibilities: Object - options to exchange Vimeo.Player.video-id: String, needed.loop: Boolean.autoplay: Boolean.Approaches.update( videoID): Creates the Vimeo player along with the supplied i.d..play().pause().mute().unmute().Celebrations.Occasions produced coming from the component.The prepared event only passes the gamer instance.
If you are actually fascinated for more or even you have any sort of bugs and suggestions, go here. That's it!Produced and sent by @dmhristov.