All Projects → nasa8x → v-video-embed

nasa8x / v-video-embed

Licence: MIT license
This is a component for Vue.js to utilize YouTube, Vimeo, DailyMotion, Coub iframe API easily

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to v-video-embed

laravel-vue-component
A Blade directive to ease up Vue workflow for Laravel projects
Stars: ✭ 19 (-45.71%)
Mutual labels:  vue-components
vue-component-creater-ui
拖拽式Vue组件代码生成编辑器(VCC)
Stars: ✭ 383 (+994.29%)
Mutual labels:  vue-components
vue-datatables
No description or website provided.
Stars: ✭ 22 (-37.14%)
Mutual labels:  vue-components
cuida
A design system built by Sysvale, using storybook and Vue components
Stars: ✭ 16 (-54.29%)
Mutual labels:  vue-components
vue-today
📅 Today is cute
Stars: ✭ 37 (+5.71%)
Mutual labels:  vue-components
vue-masonry-gallery
Masonry gallery layout component for Vue.js
Stars: ✭ 35 (+0%)
Mutual labels:  vue-components
vectre
Most complete implementation of Spectre.css on Vue.js
Stars: ✭ 63 (+80%)
Mutual labels:  vue-components
vue-data-table
Smart table using vue.js - sorting columns, filter by string, child rows, custom columns, custom row data
Stars: ✭ 15 (-57.14%)
Mutual labels:  vue-components
hawkvuemdframework
Vue material Framework. Lightweight components for vuejs 2.x.
Stars: ✭ 15 (-57.14%)
Mutual labels:  vue-components
nuxewind
Free Vue JS (Nuxt 2) Tailwind Admin Dashboard Template
Stars: ✭ 62 (+77.14%)
Mutual labels:  vue-components
fect
Minimalist UI components built on Vue-next
Stars: ✭ 352 (+905.71%)
Mutual labels:  vue-components
vue-date-range-picker
A vue component using Bootstrap 4 styles for date range selection
Stars: ✭ 30 (-14.29%)
Mutual labels:  vue-components
v-markdown-editor
Vue.js Markdown Editor component
Stars: ✭ 101 (+188.57%)
Mutual labels:  vue-components
vue-authoring-template
Vue project template for authoring component and their use case
Stars: ✭ 14 (-60%)
Mutual labels:  vue-components
vue-frame
Dynamic component for creation of interfaces with iframes
Stars: ✭ 47 (+34.29%)
Mutual labels:  vue-components
vue-mui
Mobile UI elements for Vue 2.0
Stars: ✭ 16 (-54.29%)
Mutual labels:  vue-components
v-intl
Add i18n to your awesome Vue 3 app 🔉
Stars: ✭ 13 (-62.86%)
Mutual labels:  vue-components
vue-base64-file-upload
Upload files as base64 data-uris
Stars: ✭ 77 (+120%)
Mutual labels:  vue-components
vue-flag-icon
a vue compoment for flag-icon-css
Stars: ✭ 64 (+82.86%)
Mutual labels:  vue-components
vueface
UI Components for Vue
Stars: ✭ 74 (+111.43%)
Mutual labels:  vue-components

Vue Video Embed component for Vue.js

This is a component for Vue.js to utilize YouTube, Vimeo, DailyMotion, Coub iframe embed API easily.

Vue JS - The Complete Guide (incl. Vue Router & Vuex)

How to Create a Chrome Extension with Vue.js

How To Build a Blog with Nest.js, MongoDB, and Vue.js

Demo

Vue Video Embed

Install

npm install v-video-embed
yarn install v-video-embed

Use CDN

<script src="https://unpkg.com/v-video-embed/dist/video-embed.min.js" type="text/javascript"></script>

import Vue from 'vue'
import Embed from 'v-video-embed'

// global register
Vue.use(Embed);

Youtube

<video-embed src="https://www.youtube.com/watch?v=s4ObxcdXoFE"></video-embed>

# custom params

<video-embed :params="{autoplay: 1}" src="https://www.youtube.com/watch?v=s4ObxcdXoFE"></video-embed>
# vimeo
<video-embed src="https://vimeo.com/370293725"></video-embed>


# dailymotion
<video-embed src="https://dai.ly/x7n7y06"></video-embed>

# coub
<video-embed src="https://coub.com/embed/22eztb"></video-embed>
<!-- 21:9 aspect ratio -->
 <video-embed css="embed-responsive-21by9" src="https://www.youtube.com/watch?v=s4ObxcdXoFE"></video-embed>

 <!-- 16:9 aspect ratio: default -->
 <video-embed css="embed-responsive-16by9" src="https://www.youtube.com/watch?v=s4ObxcdXoFE"></video-embed>

 <!-- 4:3 aspect ratio -->
 <video-embed css="embed-responsive-4by3" src="https://www.youtube.com/watch?v=s4ObxcdXoFE"></video-embed>

 <!-- 1:1 aspect ratio -->
 <video-embed css="embed-responsive-1by1" src="https://www.youtube.com/watch?v=s4ObxcdXoFE"></video-embed>
<video-embed ref="youtube" src="https://www.youtube.com/watch?v=s4ObxcdXoFE"></video-embed>

<button class="btn btn-primary" v-on:click="change">Change Url</button>


<script>


    export default {

        methods: {

            change() {

                this.$refs.youtube.src = "https://www.youtube.com/watch?v=nqwQpXoSN7Q";

            }
        }

    }
</script>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].