@internetarchive/audio-element
Advanced tools
Comparing version 0.0.1 to 0.0.2-alpha.1
@@ -8,2 +8,3 @@ import { LitElement, TemplateResult, PropertyValues } from 'lit-element'; | ||
sources: AudioSource[]; | ||
preload: 'auto' | 'metadata' | 'none'; | ||
readonly duration: number; | ||
@@ -10,0 +11,0 @@ readonly currentTime: number; |
@@ -15,2 +15,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
this.sources = []; | ||
this.preload = 'auto'; | ||
} | ||
@@ -64,2 +65,3 @@ get duration() { | ||
<audio | ||
.preload=${this.preload} | ||
@timeupdate=${this.handleTimeChange} | ||
@@ -138,2 +140,5 @@ @durationchange=${this.handleDurationChange} | ||
], AudioElement.prototype, "sources", void 0); | ||
__decorate([ | ||
property({ type: String }) | ||
], AudioElement.prototype, "preload", void 0); | ||
AudioElement = __decorate([ | ||
@@ -140,0 +145,0 @@ customElement('audio-element') |
{ | ||
"name": "@internetarchive/audio-element", | ||
"version": "0.0.1", | ||
"version": "0.0.2-alpha.1", | ||
"description": "An Audio Element that wraps the HTML audio tag.", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -21,2 +21,4 @@ import { | ||
@property({ type: String }) preload: 'auto' | 'metadata' | 'none' = 'auto'; | ||
get duration(): number { | ||
@@ -72,2 +74,3 @@ /* istanbul ignore next */ | ||
<audio | ||
.preload=${this.preload} | ||
@timeupdate=${this.handleTimeChange} | ||
@@ -74,0 +77,0 @@ @durationchange=${this.handleDurationChange} |
Sorry, the diff of this file is not supported yet
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
52956
314