import {g,aS as kn,aT as to,aV as oe,aX as fe,aW as ln,aC as x,aY as S}from'./main-sJAtkqeq.js';var m=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){return this.authHttp.get(e.BASE_VIDEO_LIVE_URL+r).pipe(fe(t=>this.restExtractor.handleError(t)))}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{m};//# sourceMappingURL=chunk-RxmJ9Fa4.js.map
