diff --git a/src/renderer/features/player/audio-player/engine/web-player-engine.tsx b/src/renderer/features/player/audio-player/engine/web-player-engine.tsx
index 0de875aa2..3f11948cb 100644
--- a/src/renderer/features/player/audio-player/engine/web-player-engine.tsx
+++ b/src/renderer/features/player/audio-player/engine/web-player-engine.tsx
@@ -119,42 +119,46 @@ export const WebPlayerEngine = (props: WebPlayerEngineProps) => {
return (
- onEndedPlayer1() : undefined}
- onProgress={onProgressPlayer1}
- playbackRate={speed || 1}
- playing={playerNum === 1 && playerStatus === PlayerStatus.PLAYING}
- progressInterval={isTransitioning ? 10 : 250}
- ref={player1Ref}
- url={src1 || EMPTY_SOURCE}
- volume={volume1}
- width={0}
- />
- onEndedPlayer2() : undefined}
- onProgress={onProgressPlayer2}
- playbackRate={speed || 1}
- playing={playerNum === 2 && playerStatus === PlayerStatus.PLAYING}
- progressInterval={isTransitioning ? 10 : 250}
- ref={player2Ref}
- url={src2 || EMPTY_SOURCE}
- volume={volume2}
- width={0}
- />
+ {Boolean(src1) && (
+ onEndedPlayer1() : undefined}
+ onProgress={onProgressPlayer1}
+ playbackRate={speed || 1}
+ playing={playerNum === 1 && playerStatus === PlayerStatus.PLAYING}
+ progressInterval={isTransitioning ? 10 : 250}
+ ref={player1Ref}
+ url={src1 || EMPTY_SOURCE}
+ volume={volume1}
+ width={0}
+ />
+ )}
+ {Boolean(src2) && (
+ onEndedPlayer2() : undefined}
+ onProgress={onProgressPlayer2}
+ playbackRate={speed || 1}
+ playing={playerNum === 2 && playerStatus === PlayerStatus.PLAYING}
+ progressInterval={isTransitioning ? 10 : 250}
+ ref={player2Ref}
+ url={src2 || EMPTY_SOURCE}
+ volume={volume2}
+ width={0}
+ />
+ )}
);
};