import { Component, Prop, h } from '@stencil/core';
export class SparkleVideoPlayer {
  constructor() {
    this.type = 'video/mp4';
    this.width = 400;
    this.controls = true;
  }
  render() {
    return (h("video", { width: this.width, controls: this.controls, preload: "metadata" },
      h("source", { src: this.src, type: this.type })));
  }
  static get is() { return "sparkle-video-player"; }
  static get originalStyleUrls() { return {
    "$": ["sparkle-video-player.css"]
  }; }
  static get styleUrls() { return {
    "$": ["sparkle-video-player.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,
      "defaultValue": "'video/mp4'"
    },
    "width": {
      "type": "number",
      "mutable": false,
      "complexType": {
        "original": "number",
        "resolved": "number",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "width",
      "reflect": false,
      "defaultValue": "400"
    },
    "controls": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "controls",
      "reflect": false,
      "defaultValue": "true"
    }
  }; }
}
