import{c as e,n as t,o as n,t as r}from"./_plugin-vue2_normalizer-D5mCHcOy.js";import{t as i}from"./browser-BCj0LS7L.js";import{n as a}from"./Watch-CG2UWV2X.js";import{t as o}from"./camera-D03VWK6P.js";var s=class extends e(o){cameraVideo;cameraVideoSource=``;get autoRaiseFrameEvent(){return!1}startPlayback(){try{this.updateStatus(`connecting`);let e=this.buildAbsoluteUrl(this.camera.stream_url||``).toString();this.cameraVideoSource=e,this.updateRawCameraUrl(e)}catch(e){i.error(`[IpstreamCamera] failed to start playback "${this.camera.name}"`,e)}}stopPlayback(){this.updateStatus(`disconnected`),this.cameraVideoSource=``,this.cameraVideo.src=``}};t([a(`streamingElement`)],s.prototype,`cameraVideo`,void 0),s=t([n({})],s);var c=r(s,function(){var e=this,t=e._self._c;return e._self._setupProxy,t(`video`,{ref:`streamingElement`,style:e.cameraStyle,attrs:{autoplay:``,disablePictureInPicture:``,playsinline:``,muted:``,crossorigin:e.crossorigin,src:e.cameraVideoSource},domProps:{muted:!0},on:{play:function(t){return e.updateStatus(`connected`)},error:function(t){return e.updateStatus(`error`)}}})},[],!1,null,null,null,null).exports;export{c as default};