import {g,aS as kn,aT as to,aV as oe,aX as fe,f0 as _,aW as ln,aC as x,aY as S}from'./main-BiUBeaMj.js';var d=class e{authHttp=g(kn);restExtractor=g(to);static BASE_VIDEO_LIVE_URL=oe.apiUrl+"/api/v1/videos/live/";goLive(r){return this.authHttp.post(e.BASE_VIDEO_LIVE_URL,r).pipe(fe(t=>this.restExtractor.handleError(t)))}getVideoLive(r,t){let o=_.buildVideoPasswordHeader(t);return this.authHttp.get(e.BASE_VIDEO_LIVE_URL+r,{headers:o}).pipe(fe(u=>this.restExtractor.handleError(u)))}listSessions(r){let t=new ln().set("sort","-startDate");return this.authHttp.get(e.BASE_VIDEO_LIVE_URL+r+"/sessions",{params:t}).pipe(fe(o=>this.restExtractor.handleError(o)))}findLiveSessionFromVOD(r){return this.authHttp.get(x.BASE_VIDEO_URL+"/"+r+"/live-session").pipe(fe(t=>this.restExtractor.handleError(t)))}updateLive(r,t){return this.authHttp.put(e.BASE_VIDEO_LIVE_URL+r,t).pipe(fe(o=>this.restExtractor.handleError(o)))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{d};//# sourceMappingURL=chunk-Dpcaoaz_.js.map
