Added a seek operation to reset the playback position when replacing a track in ExoPlayer. Previously, after replacing a track while in Player.STATE_ENDED, the player would maintain its position at the end of the old track. By seeking to the start of the newly added track, we ensure that playback begins from the beginning of the new media item.
This fixes an issue in rntp where:
First adding a single track and playing it.
Waiting for the track to end.
Then calling Trackplayer.load(otherTrack) and Trackplayer.play()
Added a seek operation to reset the playback position when replacing a track in ExoPlayer. Previously, after replacing a track while in Player.STATE_ENDED, the player would maintain its position at the end of the old track. By seeking to the start of the newly added track, we ensure that playback begins from the beginning of the new media item.
This fixes an issue in rntp where:
Trackplayer.load(otherTrack)
andTrackplayer.play()