mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-05 02:25:45 +02:00
Merge branch 'master' of https://github.com/advplyr/audiobookshelf-app
This commit is contained in:
commit
fed6579e08
2 changed files with 8 additions and 4 deletions
|
@ -371,6 +371,10 @@ class AudioPlayer: NSObject {
|
|||
|
||||
// Reconstruct queue if seeking to a different track
|
||||
if (self.currentTrackIndex != indexOfSeek) {
|
||||
// When we seek to a different track, we need to make sure to seek the old track to 0
|
||||
// or we will get jumps to the old position when fading over into a new track
|
||||
self.audioPlayer.seek(to: CMTime(seconds: 0, preferredTimescale: 1000))
|
||||
|
||||
self.currentTrackIndex = indexOfSeek
|
||||
|
||||
try? playbackSession.update {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue