you-tube
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -28,3 +28,6 @@ 'use strict'; | ||
videoId: this.video_id, | ||
playerVars: { 'autoplay': this.autoplay, 'controls': this.controls }, | ||
playerVars: { | ||
'autoplay': parseInt(this.autoplay), | ||
'controls': parseInt(this.controls) | ||
}, | ||
events: { | ||
@@ -31,0 +34,0 @@ 'onReady': event => this.onReady(event), |
@@ -18,3 +18,6 @@ import { Component, Prop, h } from '@stencil/core'; | ||
videoId: this.video_id, | ||
playerVars: { 'autoplay': this.autoplay, 'controls': this.controls }, | ||
playerVars: { | ||
'autoplay': parseInt(this.autoplay), | ||
'controls': parseInt(this.controls) | ||
}, | ||
events: { | ||
@@ -21,0 +24,0 @@ 'onReady': event => this.onReady(event), |
@@ -26,3 +26,6 @@ import { h, proxyCustomElement } from '@stencil/core/internal/client'; | ||
videoId: this.video_id, | ||
playerVars: { 'autoplay': this.autoplay, 'controls': this.controls }, | ||
playerVars: { | ||
'autoplay': parseInt(this.autoplay), | ||
'controls': parseInt(this.controls) | ||
}, | ||
events: { | ||
@@ -29,0 +32,0 @@ 'onReady': event => this.onReady(event), |
@@ -24,3 +24,6 @@ import { r as registerInstance, h } from './index-d8b433f2.js'; | ||
videoId: this.video_id, | ||
playerVars: { 'autoplay': this.autoplay, 'controls': this.controls }, | ||
playerVars: { | ||
'autoplay': parseInt(this.autoplay), | ||
'controls': parseInt(this.controls) | ||
}, | ||
events: { | ||
@@ -27,0 +30,0 @@ 'onReady': event => this.onReady(event), |
@@ -1,1 +0,1 @@ | ||
import{p as a,b as e}from"./p-09d3b111.js";(()=>{const e=import.meta.url,p={};return""!==e&&(p.resourcesUrl=new URL(".",e).href),a(p)})().then((a=>e([["p-30492b4a",[[0,"you-tube",{width:[1],height:[1],video_id:[1],autoplay:[1],controls:[1],playerReady:[16],playerStateChange:[16],playbackQualityChange:[16],playbackRateChange:[16],playerApiChange:[16],playerError:[16]}]]]],a))); | ||
import{p as a,b as e}from"./p-09d3b111.js";(()=>{const e=import.meta.url,p={};return""!==e&&(p.resourcesUrl=new URL(".",e).href),a(p)})().then((a=>e([["p-8289477a",[[0,"you-tube",{width:[1],height:[1],video_id:[1],autoplay:[1],controls:[1],playerReady:[16],playerStateChange:[16],playbackQualityChange:[16],playbackRateChange:[16],playerApiChange:[16],playerError:[16]}]]]],a))); |
{ | ||
"name": "you-tube", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "YouTube Web Component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -51,3 +51,3 @@ ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square) | ||
type="module" | ||
src="https://unpkg.com/you-tube@0.1.2/dist/you-tube/you-tube.esm.js"> | ||
src="https://unpkg.com/you-tube@0.1.4/dist/you-tube/you-tube.esm.js"> | ||
</script> | ||
@@ -61,3 +61,3 @@ ``` | ||
### Script tag | ||
- Put a script tag similar to this `<script type="module" src="https://unpkg.com/you-tube@0.1.3/dist/you-tube/you-tube.esm.js"></script>` in the head of your .html page as shown above | ||
- Put a script tag similar to this `<script type="module" src="https://unpkg.com/you-tube@0.1.4/dist/you-tube/you-tube.esm.js"></script>` in the head of your .html page as shown above | ||
- Then you can use the element anywhere in your template, JSX, html etc | ||
@@ -64,0 +64,0 @@ - Remember to add type="module" on your script tag as shown above |
295570
4727