diff --git a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/components/Player/index.tsx b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/components/Player/index.tsx index ea3d960..d085d9c 100644 --- a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/components/Player/index.tsx +++ b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/components/Player/index.tsx @@ -4,6 +4,7 @@ import { create, InstanceProps } from 'react-modal-promise'; import Player from '@/components/Preview/components/Torrents/components/Player'; import { Modal } from '@/components/ui/dialog'; import { useCanPlay, useSetCanPlay } from '@/hooks/useCanPlay'; +import { cn } from '@/lib/utils'; import { useFiles } from './useFiles'; import { useStats } from './useStats'; @@ -32,7 +33,13 @@ const showPlayerModal = create(({ onResolve, hash, backdrop, title, magnet }: Pr return (
-
+ {/* keep the player mounted (Safari needs it for autoplay) but hidden until buffering is done, + so its UI doesn't flash through the splash screen */} +
{sources && ( Download speed: {downloadSpeed || '0 B/s'}

- {/* a highlight sweeps around the block's 2px border while it preloads */} - -
)}