Skip to content

skybrud/sky-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sky-video

A Vue component for showing videoes.

List of supported video formats:

  • YouTube
  • Vimeo
  • Dreambroker

Installation

npm install sky-video

or

yarn add sky-video

Usage

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.

Credits

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!