A Vue component for showing videoes.
- YouTube
- Vimeo
- Dreambroker
npm install sky-video
or
yarn add sky-video
Begin by importing and installing the SkyVideo Vue plugin
import Vue from 'vue';
import SkyVideo from 'sky-video';
// If you want to use the baseline scss add the following line
import '${YOUR-PROJECT-ROOT-PATH}/node_modules/sky-video/src/v.scss';
Vue.use(SkyVideo);
<sky-video src="URL" poster="imageURL"></sky-video>
src
should be a valid Youtube, Vimeo or Dreambroker embed URL.poster
is just a URL to an image.
This module is made by the Frontenders at skybrud.dk. Feel free to use it in any way you want. Feedback, questions and bugreports should be posted as issues. Pull-requests appreciated!