Sleep

Vue. js cover for Vimeo Embed Player

.Vue.js cover for Vimeo player.The Vue-vimeo-player is actually a Vue.js wrapper for the Vimeo Embed Gamer, which enables you to use the Vimeo gamer as a Vue part comfortably, despite Nuxt.js SSR.Look at the example below.Instance.To begin teaming up with the Vue vimeo gamer use the complying with order to mount it.npm set up vue-vimeo-player-- conserve.OR.yarn incorporate vue-vimeo-player.of load it using CDN.If utilized as a global component.import Vue from 'vue'.import vueVimeoPlayer coming from 'vue-vimeo-player'.Vue.use( vueVimeoPlayer).If utilized as a regional element.// In a component.bring in vueVimeoPlayer from 'vue-vimeo-player'.export nonpayment ,.components: vueVimeoPlayer-|-|-|-random-}For usage with Nuxt.js feel free to refer listed here.Props.player-width: Strand or even Number, default one hundred%.player-height: Cord or even Variety, nonpayment 320.options: Things - possibilities to pass to Vimeo.Player.video-id: Strand, required.loop: Boolean.autoplay: Boolean.Procedures.update( videoID): Takes on the Vimeo player along with the offered ID.play().pause().mute().unmute().Celebrations.Activities emitted from the component.The prepared activity simply passes the player case.
If you are curious for additional or even you have any sort of insects and tips, click on this link. That's it!Produced and also provided by @dmhristov.

Articles You Can Be Interested In