diff --git a/src/renderer/component/video/internal/player.jsx b/src/renderer/component/video/internal/player.jsx index 3842c30ad..7c55c8ddf 100644 --- a/src/renderer/component/video/internal/player.jsx +++ b/src/renderer/component/video/internal/player.jsx @@ -165,6 +165,7 @@ class VideoPlayer extends React.PureComponent { const { hasMetadata, unplayable } = this.state; const noMetadataMessage = 'Waiting for metadata.'; const unplayableMessage = "Sorry, looks like we can't play this file."; + const hideMedia = this.playableType() && !hasMetadata && !unplayable; return ( @@ -177,6 +178,7 @@ class VideoPlayer extends React.PureComponent { {unplayable && }
{ this.media = container; }}