From f40712abbbb74e51f06037ef02757c42736bccf8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 May 2022 14:23:02 +0200 Subject: Add ability to filter overall video stats by date --- client/src/app/shared/shared-video-live/live-video.service.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/src/app/shared/shared-video-live/live-video.service.ts') diff --git a/client/src/app/shared/shared-video-live/live-video.service.ts b/client/src/app/shared/shared-video-live/live-video.service.ts index 11b9dd739..89bfd84a0 100644 --- a/client/src/app/shared/shared-video-live/live-video.service.ts +++ b/client/src/app/shared/shared-video-live/live-video.service.ts @@ -4,6 +4,7 @@ import { Injectable } from '@angular/core' import { RestExtractor } from '@app/core' import { LiveVideo, LiveVideoCreate, LiveVideoSession, LiveVideoUpdate, ResultList, VideoCreateResult } from '@shared/models' import { environment } from '../../../environments/environment' +import { VideoService } from '../shared-main' @Injectable() export class LiveVideoService { @@ -32,6 +33,12 @@ export class LiveVideoService { .pipe(catchError(err => this.restExtractor.handleError(err))) } + findLiveSessionFromVOD (videoId: number | string) { + return this.authHttp + .get(VideoService.BASE_VIDEO_URL + '/' + videoId + '/live-session') + .pipe(catchError(err => this.restExtractor.handleError(err))) + } + updateLive (videoId: number | string, liveUpdate: LiveVideoUpdate) { return this.authHttp .put(LiveVideoService.BASE_VIDEO_LIVE_URL + videoId, liveUpdate) -- cgit v1.2.3