🎥 Make videos programmatically with React
Update use-windowed-audio-data.ts
Jonny Burger04b93566921a
diff --git a/packages/media-utils/src/use-windowed-audio-data.ts b/packages/media-utils/src/use-windowed-audio-data.tsindex e9a75a4a20..af694c8474 100644--- a/packages/media-utils/src/use-windowed-audio-data.ts+++ b/packages/media-utils/src/use-windowed-audio-data.ts@@ -317,9 +317,8 @@ export const useWindowedAudioData = ({// Prioritize the current window where playback is at.// On slow connections, this ensures the most important window loads first.- const currentWindowNeedsFetch = windowsToActuallyFetch.includes(- currentWindowIndex,- );+ const currentWindowNeedsFetch =+ windowsToActuallyFetch.includes(currentWindowIndex);const otherWindowsToFetch = windowsToActuallyFetch.filter((w) => w !== currentWindowIndex,);