var l=Object.defineProperty;var u=(a,e,r)=>e in a?l(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r;var i=(a,e,r)=>u(a,typeof e!="symbol"?e+"":e,r);import{m as _,C as p,f,R as d,j as v}from"./index-CckO8w-f.js";var h=Object.defineProperty,C=Object.getOwnPropertyDescriptor,n=(a,e,r,t)=>{for(var s=t>1?void 0:t?C(e,r):e,m=a.length-1,c;m>=0;m--)(c=a[m])&&(s=(t?c(e,r,s):c(s))||s);return t&&s&&h(e,r,s),s};let o=class extends _(p){constructor(){super(...arguments);i(this,"cameraVideo");i(this,"cameraVideoSource","")}startPlayback(){const r=this.buildAbsoluteUrl(this.camera.stream_url||"").toString();this.cameraVideoSource=r,this.$emit("raw-camera-url",r)}stopPlayback(){this.cameraVideoSource="",this.cameraVideo.src=""}};n([d("streamingElement")],o.prototype,"cameraVideo",2);o=n([f({})],o);var P=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("video",{ref:"streamingElement",style:e.cameraStyle,attrs:{src:e.cameraVideoSource,autoplay:"",muted:"",crossorigin:e.crossorigin},domProps:{muted:!0}})},y=[],V=v(o,P,y,!1,null,null);const g=V.exports;export{g as default};
