import{c as m}from"./chunk-JZQULWZP.js";import{B as s,Kh as c,Y as p,aa as a,fd as n,id as E,sf as h}from"./chunk-HJJWL6RD.js";import{i as o}from"./chunk-H2BCKOF6.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:671d995daee9c68b73ac729b7ab2c3cf3be32c7f1a24d9dfa94e261c45ee5241*/
//# sourceMappingURL=chunk-E4VBSH2Z.js.map
