import{b as m,c as u}from"./chunk-RG7KH4LA.js";import{Bf as h,C as o,Z as p,ba as a,ih as c,nd as n,qd as E}from"./chunk-RB2SGB4Z.js";import{i}from"./chunk-IQVXR75E.js";var t=class t{authHttp=a(E);restExtractor=a(c);goLive(e){return this.authHttp.post(t.BASE_VIDEO_LIVE_URL,e).pipe(o(r=>this.restExtractor.handleError(r)))}getVideoLive(e,r){let s=m.buildVideoPasswordHeader(r);return this.authHttp.get(t.BASE_VIDEO_LIVE_URL+e,{headers:s}).pipe(o(f=>this.restExtractor.handleError(f)))}listSessions(e){let r=new n().set("sort","-startDate");return this.authHttp.get(t.BASE_VIDEO_LIVE_URL+e+"/sessions",{params:r}).pipe(o(s=>this.restExtractor.handleError(s)))}findLiveSessionFromVOD(e){return this.authHttp.get(u.BASE_VIDEO_URL+"/"+e+"/live-session").pipe(o(r=>this.restExtractor.handleError(r)))}updateLive(e,r){return this.authHttp.put(t.BASE_VIDEO_LIVE_URL+e,r).pipe(o(s=>this.restExtractor.handleError(s)))}};i(t,"BASE_VIDEO_LIVE_URL",h.apiUrl+"/api/v1/videos/live/"),i(t,"\u0275fac",function(r){return new(r||t)}),i(t,"\u0275prov",p({token:t,factory:t.\u0275fac}));var d=t;export{d as a};
/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
//# sourceMappingURL=chunk-T62PPGJ7.js.map
