jwplayer-video-element
Advanced tools
Comparing version 0.2.3 to 0.2.4
import { SuperVideoElement } from 'super-media-element'; | ||
const templateLightDOM = document.createElement('template'); | ||
templateLightDOM.innerHTML = ` | ||
templateLightDOM.innerHTML = /*html*/` | ||
<style class="jw-style"> | ||
@@ -15,6 +15,14 @@ .jw-no-controls [class*="jw-controls"], | ||
const templateShadowDOM = document.createElement('template'); | ||
templateShadowDOM.innerHTML = ` | ||
templateShadowDOM.innerHTML = /*html*/` | ||
<style> | ||
:host { | ||
display: inline-block; | ||
min-width: 300px; | ||
min-height: 150px; | ||
position: relative; | ||
} | ||
::slotted(.jwplayer) { | ||
position: absolute !important; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
@@ -115,9 +123,3 @@ </style> | ||
if (this.controls == val) return; | ||
if (val) { | ||
this.setAttribute('controls', ''); | ||
} else { | ||
// Remove boolean attribute if false, 0, '', null, undefined. | ||
this.removeAttribute('controls'); | ||
} | ||
this.toggleAttribute('controls', Boolean(val)); | ||
} | ||
@@ -124,0 +126,0 @@ |
{ | ||
"name": "jwplayer-video-element", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "A custom element for the JW player with an API that matches the `<video>` API", | ||
@@ -5,0 +5,0 @@ "type": "module", |
8727
152