]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video-details.model.ts
Use HLS by default if enabled
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-details.model.ts
index 8463e15d750491e3f5afe997acceb0c29232d5da..22f024656175f49be46fef97a2573e589bb16489 100644 (file)
@@ -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()
+  }
 }