import { Component, h, Host, Prop, State } from '@stencil/core';
export class AkordAudioViewer {
  constructor() {
    this.loading = true;
  }
  onCanPlay() {
    this.loading = false;
  }
  render() {
    return (h(Host, { style: { display: 'block', width: `${this.width}px`, height: `${this.height}px` } },
      h("audio", { controls: true, onCanPlay: () => this.onCanPlay(), src: this.src }, "Video playback is not supported by your browser.")));
  }
  static get is() { return "akord-audio-viewer"; }
  static get originalStyleUrls() { return {
    "$": ["akord-audio-viewer.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["akord-audio-viewer.css"]
  }; }
  static get properties() { return {
    "src": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "src",
      "reflect": false
    },
    "type": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "type",
      "reflect": false
    },
    "width": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "width",
      "reflect": false
    },
    "height": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "height",
      "reflect": false
    }
  }; }
  static get states() { return {
    "loading": {}
  }; }
}
