import{r as registerInstance,h}from"./index-BxRAfMA5.js";const prestoVideoCss=":host{display:block}",PrestoVideo=class{constructor(s){registerInstance(this,s)}render(){return h("video",{key:"8c5e3dcc559163fd2f5df2e0400de241aa997028",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,crossorigin:this.crossorigin||void 0},h("source",{key:"9ff4c7c2500bb764a4212742ec44b73fec437b0e",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};