mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 00:59:28 +01:00
Fix pausing after playing a few tracks (#94)
we only get this error when playing so we should always keep playing
This commit is contained in:
parent
c1a4b5ede8
commit
f39a29159a
@ -28,9 +28,9 @@ const setNetState = (netState: 'mobile' | 'wifi') => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const rebuildQueue = () => {
|
const rebuildQueue = (forcePlay?: boolean) => {
|
||||||
unstable_batchedUpdates(() => {
|
unstable_batchedUpdates(() => {
|
||||||
useStore.getState().rebuildQueue(useStore.getState().playerState === State.Playing)
|
useStore.getState().rebuildQueue(forcePlay)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ const createService = async () => {
|
|||||||
|
|
||||||
// fix for ExoPlayer aborting playback while esimating content length
|
// fix for ExoPlayer aborting playback while esimating content length
|
||||||
if (code === 'playback-source' && message.includes('416')) {
|
if (code === 'playback-source' && message.includes('416')) {
|
||||||
rebuildQueue()
|
rebuildQueue(true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user