From c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Sep 2020 09:20:52 +0200 Subject: Live streaming implementation first step --- client/src/app/shared/shared-main/video/video-details.model.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/shared-main/video/video-details.model.ts') diff --git a/client/src/app/shared/shared-main/video/video-details.model.ts b/client/src/app/shared/shared-main/video/video-details.model.ts index a1cb051e9..f060d1dc9 100644 --- a/client/src/app/shared/shared-main/video/video-details.model.ts +++ b/client/src/app/shared/shared-main/video/video-details.model.ts @@ -62,8 +62,11 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { } getFiles () { - if (this.files.length === 0) return this.getHlsPlaylist().files + if (this.files.length !== 0) return this.files - return this.files + const hls = this.getHlsPlaylist() + if (hls) return hls.files + + return [] } } -- cgit v1.2.3