fix: don't popout for images
This commit is contained in:
parent
def421bfd6
commit
a8fb8b82f4
1 changed files with 4 additions and 1 deletions
|
@ -45,6 +45,7 @@ export default function FileViewer(props: Props) {
|
|||
floatingPlayerEnabled,
|
||||
triggerAnalyticsView,
|
||||
claimRewards,
|
||||
mediaType,
|
||||
} = props;
|
||||
const [playTime, setPlayTime] = useState();
|
||||
const [fileViewerRect, setFileViewerRect] = usePersistedState('inline-file-viewer:rect');
|
||||
|
@ -112,7 +113,9 @@ export default function FileViewer(props: Props) {
|
|||
});
|
||||
}
|
||||
|
||||
const hidePlayer = !isPlaying || !uri || (!inline && (!floatingPlayerEnabled || !isStreamable));
|
||||
const hidePlayer =
|
||||
!isPlaying || !uri || (!inline && (!floatingPlayerEnabled || (mediaType !== 'video' || mediaType !== 'audio')));
|
||||
|
||||
if (hidePlayer) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue