Install & Download:
# NPM
$ npm i v-video-embed --save
# Bower
$ bower install v-video-embed --saveDescription:
This is an easy video embed component that supports YouTube, Vimeo, DailyMotion, Coub iframe embed API.
Basic usage:
1. Import and register the component.
import './layout.css'; import Vue from 'vue'; import Embed from 'v-video-embed'; Vue.use(Embed);
2. Add the video embed component to the app.vue.
<video-embed src="https://www.youtube.com/watch?v=s4ObxcdXoFE&list=PLOtXQ1m0FkHBRg_6v8lJfX9AKKamgYrjC"></video-embed> <video-embed src="https://vimeo.com/370293725"></video-embed> <video-embed src="https://dai.ly/x7n7y06"></video-embed> <video-embed src="https://coub.com/embed/22eztb"></video-embed> ...
Preview:





