Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Remove player error retry
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Mar 13, 2023
1 parent 39019b5 commit 49708d4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/components/player/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -770,14 +770,6 @@ const Player = ({ currentEntryList, muted, children }: any, ref: any) => {
playQueue.currentPlayer === 1 &&
player.status === 'PLAYING'
}
onError={() => {
if (config.serverType !== Server.Jellyfin) {
if (playQueue[currentEntryList].length > 0) {
player1Ref.current.audioEl.current.src = './components/player/dummy.mp3';
player1Ref.current.audioEl.current.src = getSrc1();
}
}
}}
muted={muted}
crossOrigin="anonymous"
/>
Expand All @@ -796,14 +788,6 @@ const Player = ({ currentEntryList, muted, children }: any, ref: any) => {
playQueue.currentPlayer === 2 &&
player.status === 'PLAYING'
}
onError={() => {
if (config.serverType !== Server.Jellyfin) {
if (playQueue[currentEntryList].length > 0) {
player2Ref.current.audioEl.current.src = './components/player/dummy.mp3';
player2Ref.current.audioEl.current.src = getSrc2();
}
}
}}
muted={muted}
crossOrigin="anonymous"
/>
Expand Down

0 comments on commit 49708d4

Please sign in to comment.