import { Component, h, Host, Prop, State } from '@stencil/core';
export class AkordVideoViewer {
  constructor() {
    this.isLoading = true;
  }
  onCanPlay() {
    this.isLoading = false;
  }
  render() {
    return (h(Host, { style: { display: 'block', textAlign: '-webkit-center' } },
      h("video", { controls: true, onCanPlay: () => this.onCanPlay(), src: this.src, style: { height: `${this.height}px` } }, "Video playback is not supported by your browser.")));
  }
  static get is() { return "akord-video-viewer"; }
  static get originalStyleUrls() { return {
    "$": ["akord-video-viewer.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["akord-video-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": "number",
      "mutable": false,
      "complexType": {
        "original": "number",
        "resolved": "number",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "height",
      "reflect": false
    }
  }; }
  static get states() { return {
    "isLoading": {}
  }; }
}
