fix: show 'no preview available' for files correctly
This commit is contained in:
parent
476bd1e977
commit
b98301d28d
1 changed files with 2 additions and 2 deletions
|
@ -283,8 +283,8 @@ class MediaPlayer extends React.PureComponent {
|
||||||
const isLoadingFile = !fileSource && isFileType;
|
const isLoadingFile = !fileSource && isFileType;
|
||||||
const isLbryPackage = /application\/x(-ext)?-lbry$/.test(contentType);
|
const isLbryPackage = /application\/x(-ext)?-lbry$/.test(contentType);
|
||||||
const isUnsupported =
|
const isUnsupported =
|
||||||
!isLbryPackage && (!this.supportedType() && !isFileType && !isPlayableType);
|
(mediaType === 'application' && !isLbryPackage) ||
|
||||||
|
(!this.supportedType() && !isFileType && !isPlayableType);
|
||||||
// Media (audio, video)
|
// Media (audio, video)
|
||||||
const isUnplayable = isPlayableType && unplayable;
|
const isUnplayable = isPlayableType && unplayable;
|
||||||
const isLoadingMetadata = isPlayableType && (!hasMetadata && !unplayable);
|
const isLoadingMetadata = isPlayableType && (!hasMetadata && !unplayable);
|
||||||
|
|
Loading…
Reference in a new issue