import{r as s,h as e}from"./p-BxRAfMA5.js";const i=":host{display:block}",o=class{constructor(e){s(this,e)}render(){return e("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},e("source",{key:"ab9be0a15b7d9a4df81e19b6518eb60d074ff580",src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map(s=>e("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"})))}};o.style=i;export{o as presto_video};