From 656591660527e8ba48d496c8d6b34598f869ea05 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 May 2019 11:35:54 +0200 Subject: Use HLS by default if enabled --- client/src/app/shared/video/video-details.model.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts index 8463e15d7..22f024656 100644 --- a/client/src/app/shared/video/video-details.model.ts +++ b/client/src/app/shared/video/video-details.model.ts @@ -52,4 +52,8 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { getHlsPlaylist () { return this.streamingPlaylists.find(p => p.type === VideoStreamingPlaylistType.HLS) } + + hasHlsPlaylist () { + return !!this.getHlsPlaylist() + } } -- cgit v1.2.3