aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video-details.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-14 11:35:54 +0200
committerChocobozzz <me@florianbigard.com>2019-05-14 11:35:54 +0200
commit656591660527e8ba48d496c8d6b34598f869ea05 (patch)
treef5d8ee245dc5046888b5610562165e448af539d4 /client/src/app/shared/video/video-details.model.ts
parent39e6a5cbec21d5fa2e29be3e6f1c3e88726136ec (diff)
downloadPeerTube-656591660527e8ba48d496c8d6b34598f869ea05.tar.gz
PeerTube-656591660527e8ba48d496c8d6b34598f869ea05.tar.zst
PeerTube-656591660527e8ba48d496c8d6b34598f869ea05.zip
Use HLS by default if enabled
Diffstat (limited to 'client/src/app/shared/video/video-details.model.ts')
-rw-r--r--client/src/app/shared/video/video-details.model.ts4
1 files changed, 4 insertions, 0 deletions
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 {
52 getHlsPlaylist () { 52 getHlsPlaylist () {
53 return this.streamingPlaylists.find(p => p.type === VideoStreamingPlaylistType.HLS) 53 return this.streamingPlaylists.find(p => p.type === VideoStreamingPlaylistType.HLS)
54 } 54 }
55
56 hasHlsPlaylist () {
57 return !!this.getHlsPlaylist()
58 }
55} 59}