import{r as registerInstance,h}from"./index-BxRAfMA5.js";const prestoVideoCss=":host{display:block}",PrestoVideo=class{constructor(e){registerInstance(this,e)}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"})))}};PrestoVideo.style=prestoVideoCss;export{PrestoVideo as presto_video};