From 020884bb7bbb16167f4fe8c5df170a9908af31d5 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Sun, 17 Jun 2018 02:44:51 -0400 Subject: [PATCH] fixed isPlayable to only play for video or audio. --- src/renderer/page/file/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/page/file/view.jsx b/src/renderer/page/file/view.jsx index b47ad5879..6f5a1af77 100644 --- a/src/renderer/page/file/view.jsx +++ b/src/renderer/page/file/view.jsx @@ -116,7 +116,7 @@ class FilePage extends React.Component { const shouldObscureThumbnail = obscureNsfw && metadata.nsfw; const { height, channel_name: channelName, value } = claim; const mediaType = Lbry.getMediaType(contentType); - const isPlayable = Object.values(player.mime).includes(contentType) || mediaType === 'audio'; + const isPlayable = mediaType === 'video' || mediaType === 'audio'; const channelClaimId = value && value.publisherSignature && value.publisherSignature.certificateId; let subscriptionUri;