diff --git a/ui/js/component/video/view.jsx b/ui/js/component/video/view.jsx index 3284c4d46..28a0e65be 100644 --- a/ui/js/component/video/view.jsx +++ b/ui/js/component/video/view.jsx @@ -49,7 +49,7 @@ class VideoPlayButton extends React.Component { */ const disabled = isLoading || fileInfo === undefined || (fileInfo === null && (!costInfo || costInfo.cost === undefined)) - const icon = mediaType == "image" ? "icon-folder-o" : "icon-play" + const icon = ["audio", "video"].indexOf(mediaType) !== -1 ? "icon-play" : "icon-folder-o" return (
- {mediaType === "audio" && } + {["audio", "application"].indexOf(mediaType) !== -1 && }
) diff --git a/ui/js/page/filePage/view.jsx b/ui/js/page/filePage/view.jsx index c0c7c1248..c1ecfb19d 100644 --- a/ui/js/page/filePage/view.jsx +++ b/ui/js/page/filePage/view.jsx @@ -93,11 +93,14 @@ class FilePage extends React.Component{ const channelUri = signatureIsValid && hasSignature && channelName ? lbryuri.build({channelName, claimId: channelClaimId}, false) : null const uriIndicator = const mediaType = lbry.getMediaType(contentType) + const player = require('render-media') + const isPlayable = Object.values(player.mime).indexOf(contentType) !== -1 || + mediaType === "audio" return (
- { ["video", "audio", "image"].indexOf(mediaType) !== -1 ? + { isPlayable ?
diff --git a/ui/scss/page/_show.scss b/ui/scss/page/_show.scss index 48b82d065..0dbfea2e0 100644 --- a/ui/scss/page/_show.scss +++ b/ui/scss/page/_show.scss @@ -6,4 +6,9 @@ img { max-width: 100%; } + + iframe { + width: 100%; + min-height: 500px; + } } \ No newline at end of file