Closed DennisdeWitNL closed 7 months ago
With 4.1.1, when using seekTo(buffered - 1), it works fine. With seekTo(buffered) it still dies on a livestream.
Closed. Do NOT use addEventListener inside of App.js, you should use it as a separate function! Otherwise it will fire in a loop and crash RNTP.
Describe the Bug When using
TrackPlayer.seekTo(buffer)
on a livestream, the stream restarts a few times and then the player eventually dies out.Steps To Reproduce
TrackPlayer.seekTo(buffer)
seekTo
to other values, such as (10).Code To Reproduce
Replicable on Example App? Yes. And I see this issue too on all the other apps where I use the
TrackPlayer.seekTo(buffer
) command on.Environment Info: Paste the results of
npx react-native info
Paste the exact
react-native-track-player
version you are using Error happens on the latest nightly4.0.1-nightly-7628d4a89251f09ea88114a47927dd26b4c9dff1
and RC4.0.0-rc09
Real device? Or simulator? Real device
What OS are you running? Tested against iOS 17.3 and iOS 17.4.
I have no experience with SwiftAudioEx, so I don't know exactly how to solve it. All I know is that
seekTo()
is bugged.