import{r as registerInstance,h}from"./index-2bbac65f.js";const prestoVideoCss=":host{display:block}",PrestoVideo=class{constructor(s){registerInstance(this,s),this.getRef=void 0,this.autoplay=void 0,this.src=void 0,this.preload=void 0,this.poster=void 0,this.player=void 0,this.tracks=void 0,this.playsinline=void 0,this.provider=void 0,this.videoAttributes=void 0}render(){return h("video",Object.assign({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",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((s=>h("track",{kind:"captions",label:(null==s?void 0:s.label)?s.label:"Captions",src:null==s?void 0:s.src,srclang:(null==s?void 0:s.srcLang)?null==s?void 0:s.srcLang:"en"}))))}};PrestoVideo.style=prestoVideoCss;export{PrestoVideo as presto_video};