@techassi/vue-youtube-iframe
Advanced tools
Comparing version 1.0.2 to 1.0.3
// Copyright © 2020-present Techassi | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
// vue-youtube-iframe 1.0.1 | ||
// vue-youtube-iframe 1.0.2 | ||
import { h, nextTick } from 'vue'; | ||
@@ -70,2 +70,6 @@ | ||
}, | ||
noCookie: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}, | ||
@@ -86,3 +90,7 @@ data() { | ||
manager.register((factory, uid) => { | ||
const host = this.noCookie | ||
? 'https://www.youtube-nocookie.com' | ||
: 'https://www.youtube.com'; | ||
this.elementId = uid; | ||
nextTick().then(() => { | ||
@@ -94,3 +102,3 @@ this.player = new factory.Player(this.elementId, { | ||
videoId, | ||
host: 'https://www.youtube.com', | ||
host, | ||
events: { | ||
@@ -97,0 +105,0 @@ onReady: (event) => { |
// Copyright © 2020-present Techassi | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
// vue-youtube-iframe 1.0.1 | ||
// vue-youtube-iframe 1.0.2 | ||
(function (global, factory) { | ||
@@ -74,2 +74,6 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) : | ||
}, | ||
noCookie: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}, | ||
@@ -90,3 +94,7 @@ data() { | ||
manager.register((factory, uid) => { | ||
const host = this.noCookie | ||
? 'https://www.youtube-nocookie.com' | ||
: 'https://www.youtube.com'; | ||
this.elementId = uid; | ||
vue.nextTick().then(() => { | ||
@@ -98,3 +106,3 @@ this.player = new factory.Player(this.elementId, { | ||
videoId, | ||
host: 'https://www.youtube.com', | ||
host, | ||
events: { | ||
@@ -101,0 +109,0 @@ onReady: (event) => { |
{ | ||
"name": "@techassi/vue-youtube-iframe", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "This plugin makes it easy to integrate the YouTube Iframe API into your Vue app. This plugin is Vue V3 compatible.", | ||
@@ -34,3 +34,2 @@ "main": "lib/vue-youtube-iframe.umd.js", | ||
"devDependencies": { | ||
"@rollup/plugin-buble": "^0.21.3", | ||
"eslint": "^7.10.0", | ||
@@ -37,0 +36,0 @@ "eslint-config-airbnb-base": "^14.2.0", |
@@ -10,3 +10,3 @@ # vue-youtube-iframe | ||
```shell | ||
npm install vue-youtube-iframe --save | ||
npm install @techassi/vue-youtube-iframe --save | ||
``` | ||
@@ -17,3 +17,3 @@ | ||
```shell | ||
yarn add vue-youtube-iframe | ||
yarn add @techassi/vue-youtube-iframe | ||
``` | ||
@@ -52,2 +52,3 @@ | ||
:player-height="HEIGHT" | ||
:no-cookie="TRUE / FALSE" | ||
:player-parameters="YT_PLAYER_PARAMS" | ||
@@ -59,2 +60,10 @@ @EVENT="CALLBACK" | ||
#### Available props | ||
- `:videoId / :video-id`: Specify the YT video id (e.g. `dQw4w9WgXcQ`) | ||
- `:playerWidth / :player-width`: Specify the player's width in pixels | ||
- `:playerHeight / :player-height`: Specify the player's height in pixels | ||
- `:noCookie / :no-cookie`: If set to `true` the host will be set to `https://www.youtube-nocookie.com` | ||
- `:playerParameters / :player-parameters`: Set player parameters, see [here](#available-player-parameters) | ||
#### Available player parameters | ||
@@ -61,0 +70,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14094
8
292
86