mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 12:30:06 +02:00
Normalize types
This commit is contained in:
@@ -154,14 +154,14 @@ export const AudioPlayer = forwardRef(
|
||||
ref={player1Ref}
|
||||
height={0}
|
||||
muted={muted}
|
||||
playing={currentPlayer === 1 && status === PlayerStatus.Playing}
|
||||
playing={currentPlayer === 1 && status === PlayerStatus.PLAYING}
|
||||
progressInterval={isTransitioning ? 10 : 250}
|
||||
url={player1?.streamUrl}
|
||||
volume={volume}
|
||||
width={0}
|
||||
onEnded={handleOnEnded}
|
||||
onProgress={
|
||||
playbackStyle === PlaybackStyle.Gapless
|
||||
playbackStyle === PlaybackStyle.GAPLESS
|
||||
? handleGapless1
|
||||
: handleCrossfade1
|
||||
}
|
||||
@@ -170,14 +170,14 @@ export const AudioPlayer = forwardRef(
|
||||
ref={player2Ref}
|
||||
height={0}
|
||||
muted={muted}
|
||||
playing={currentPlayer === 2 && status === PlayerStatus.Playing}
|
||||
playing={currentPlayer === 2 && status === PlayerStatus.PLAYING}
|
||||
progressInterval={isTransitioning ? 10 : 250}
|
||||
url={player2?.streamUrl}
|
||||
volume={volume}
|
||||
width={0}
|
||||
onEnded={handleOnEnded}
|
||||
onProgress={
|
||||
playbackStyle === PlaybackStyle.Gapless
|
||||
playbackStyle === PlaybackStyle.GAPLESS
|
||||
? handleGapless2
|
||||
: handleCrossfade2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user