X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fvideo-details.model.ts;h=22f024656175f49be46fef97a2573e589bb16489;hb=656591660527e8ba48d496c8d6b34598f869ea05;hp=8463e15d750491e3f5afe997acceb0c29232d5da;hpb=39e6a5cbec21d5fa2e29be3e6f1c3e88726136ec;p=github%2FChocobozzz%2FPeerTube.git 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() + } }