Generate podcasts in the background without stopping current playback #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When a podcast is playing and I open another bookmark and tap the headphone button, it should start generating that podcast in the background while the current episode keeps playing. When generation finishes, the new episode drops into the Unplayed queue instead of hijacking the player.
Motivation
Today, kicking off a new podcast interrupts whatever I'm listening to. I want to browse and queue up several podcasts while continuing to listen.
Current state of the code
PodcastPlayerViewModel.start()(Marks/Views/PodcastPlayerView.swift, ~line 62) callsstop()on the previous episode and runs the generate -> poll -> download loop inside the player itself. So generation and playback are welded together — starting a generation necessarily tears down playback.claude.generatePodcast->podcastStatuspolling ->downloadPodcastAudioindependently ofPodcastPlayerViewModel, so the currentAVPlayeris untouched.PodcastIndex.upsert(...)(already the case in the download path) and the new entry appears at the top of the Unplayed queue.Behavior
Dependencies