import {g,aS as kn,aT as no,aV as oe,aX as le,f0 as _,aW as ln,aC as x,aY as S}from'./main-DEZ5cZzu.js';var d=class e{authHttp=g(kn);restExtractor=g(no);static BASE_VIDEO_LIVE_URL=oe.apiUrl+"/api/v1/videos/live/";goLive(r){return this.authHttp.post(e.BASE_VIDEO_LIVE_URL,r).pipe(le(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(le(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(le(o=>this.restExtractor.handleError(o)))}findLiveSessionFromVOD(r){return this.authHttp.get(x.BASE_VIDEO_URL+"/"+r+"/live-session").pipe(le(t=>this.restExtractor.handleError(t)))}updateLive(r,t){return this.authHttp.put(e.BASE_VIDEO_LIVE_URL+r,t).pipe(le(o=>this.restExtractor.handleError(o)))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{d};//# sourceMappingURL=chunk-BMYInCYm.js.map
