import{c as m}from"./chunk-OORXVBP2.js";import{Af as h,C as s,Z as p,ba as a,hh as c,nd as n,qd as E}from"./chunk-7XPKW7E5.js";import{i as o}from"./chunk-SNJLK5AI.js";var t=class t{authHttp=a(E);restExtractor=a(c);goLive(e){return this.authHttp.post(t.BASE_VIDEO_LIVE_URL,e).pipe(s(r=>this.restExtractor.handleError(r)))}getVideoLive(e){return this.authHttp.get(t.BASE_VIDEO_LIVE_URL+e).pipe(s(r=>this.restExtractor.handleError(r)))}listSessions(e){let r=new n().set("sort","-startDate");return this.authHttp.get(t.BASE_VIDEO_LIVE_URL+e+"/sessions",{params:r}).pipe(s(i=>this.restExtractor.handleError(i)))}findLiveSessionFromVOD(e){return this.authHttp.get(m.BASE_VIDEO_URL+"/"+e+"/live-session").pipe(s(r=>this.restExtractor.handleError(r)))}updateLive(e,r){return this.authHttp.put(t.BASE_VIDEO_LIVE_URL+e,r).pipe(s(i=>this.restExtractor.handleError(i)))}};o(t,"BASE_VIDEO_LIVE_URL",h.apiUrl+"/api/v1/videos/live/"),o(t,"\u0275fac",function(r){return new(r||t)}),o(t,"\u0275prov",p({token:t,factory:t.\u0275fac}));var u=t;export{u as a};
/**i18n:8bbaae6e8f892c770558263409b04864bea4163b0f68bbe3358622c96ded4382*/
//# sourceMappingURL=chunk-FVNOPTCO.js.map
