Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add the player.startSong function to the streamHandlerStarted functio…
…n and delete the if statement for call the fillStreamQueue
  • Loading branch information
gersonup committed Oct 22, 2024
commit 15aab9abb03fcd0104f5f6a928da333a3c555f51
5 changes: 2 additions & 3 deletions Classes/Models/Stream Handlers/StreamManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,15 @@ final class StreamManager {
}

@objc private func songPlaybackEnded() {
if settings.isSongCachingEnabled {
fillStreamQueue()
}
fillStreamQueue()
}
}

extension StreamManager: StreamHandlerDelegate {
func streamHandlerStarted(handler: StreamHandler) {
if handler.isTempCache {
lastTempCachedSong = nil
player.startSong(handler.song, index: handlerStack.startIndex, offsetInBytes: handler.byteOffset, offsetInSeconds: handler.secondsOffset)
}
}

Expand Down