import{c as h}from"./chunk-KHRLI7AH.js";import{$ as s,B as o,Mc as p,Wf as n,Y as a,af as E}from"./chunk-X3RCWQ3R.js";import{i as e}from"./chunk-SR6RTMQI.js";var i=class i{constructor(r,t){e(this,"authHttp");e(this,"restExtractor");this.authHttp=r,this.restExtractor=t}goLive(r){return this.authHttp.post(i.BASE_VIDEO_LIVE_URL,r).pipe(o(t=>this.restExtractor.handleError(t)))}getVideoLive(r){return this.authHttp.get(i.BASE_VIDEO_LIVE_URL+r).pipe(o(t=>this.restExtractor.handleError(t)))}listSessions(r){return this.authHttp.get(i.BASE_VIDEO_LIVE_URL+r+"/sessions").pipe(o(t=>this.restExtractor.handleError(t)))}findLiveSessionFromVOD(r){return this.authHttp.get(h.BASE_VIDEO_URL+"/"+r+"/live-session").pipe(o(t=>this.restExtractor.handleError(t)))}updateLive(r,t){return this.authHttp.put(i.BASE_VIDEO_LIVE_URL+r,t).pipe(o(u=>this.restExtractor.handleError(u)))}};e(i,"BASE_VIDEO_LIVE_URL",E.apiUrl+"/api/v1/videos/live/"),e(i,"\u0275fac",function(t){return new(t||i)(s(p),s(n))}),e(i,"\u0275prov",a({token:i,factory:i.\u0275fac}));var c=i;export{c as a};
/**i18n:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*/
//# sourceMappingURL=chunk-5XZURNEE.js.map
