/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
dist
/
components
/
components
/
Upload File
HOME
import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";const prestoVideoCss=":host{display:block}",PrestoVideo=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return h("video",{key:"f8942eef52dd555ddaaad75cdff70dea9e18488a",class:{"presto-player__player":!0,"plyr__video-embed":["youtube","vimeo"].includes(this.provider)},part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline,...this.videoAttributes},h("source",{key:"ab9be0a15b7d9a4df81e19b6518eb60d074ff580",src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map(e=>h("track",{kind:"captions",label:(null==e?void 0:e.label)?e.label:"Captions",src:null==e?void 0:e.src,srclang:(null==e?void 0:e.srcLang)?null==e?void 0:e.srcLang:"en"})))}static get style(){return prestoVideoCss}},[256,"presto-video",{getRef:[1040,"get-ref"],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1],videoAttributes:[16,"video-attributes"]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["presto-video"].forEach(e=>{"presto-video"===e&&(customElements.get(e)||customElements.define(e,PrestoVideo))})}export{PrestoVideo as P,defineCustomElement as d};