Revert "fixed isPlayable to only play for video or audio." #1632

Merged
neb-b merged 1 commit from revert-1623-markb_1590_isPlayable into master 2018-06-18 18:40:28 +02:00

View file

@ -116,7 +116,7 @@ class FilePage extends React.Component<Props> {
const shouldObscureThumbnail = obscureNsfw && metadata.nsfw;
const { height, channel_name: channelName, value } = claim;
const mediaType = Lbry.getMediaType(contentType);
const isPlayable = mediaType === 'video' || mediaType === 'audio';
const isPlayable = Object.values(player.mime).includes(contentType) || mediaType === 'audio';
const channelClaimId =
value && value.publisherSignature && value.publisherSignature.certificateId;
let subscriptionUri;