Skip to content

Commit

Permalink
Disable preloading of first section in Playback
Browse files Browse the repository at this point in the history
  • Loading branch information
albertas-jn committed Oct 8, 2023
1 parent f9b5a58 commit 2c49a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/Playback/Playback.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ const Playback = ({
}, [playerIndex]);

// Preload first section
useEffect(() => {
return audio.loadUntilAvailable(MEDIA_ROOT + sections[0].url, () => {});
}, [sections]);
// useEffect(() => {
// return audio.loadUntilAvailable(MEDIA_ROOT + sections[0].url, () => {});
// }, [sections]);

// Cancel events
const cancelAudioListeners = useCallback(() => {
Expand Down

0 comments on commit 2c49a82

Please sign in to comment.