DeadAir: start an episode at once and move to the shortened copy when it is ready #178
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?
Today a DeadAir show's episode only plays shortened once its copy is made, a few minutes after the download. Until then you hear the original, and the page does not move to the copy while you listen.
Plan
took_msonDeadAir copy made: 7304 ms for 520 cuts, 9165 ms for 643).to_copy). The page already hears when a copy is done (#176).You hear about 10s of the original, then the shortened version, with no gaps.
To check first:
What was tested, and what was ruled out (2026-10-09/10)
Tested in iOS 18.7 Safari with a page that played beeps with 3s silences between them.
The native player is on hold, so this is for the web page.
The stall is real, not a clock lag. In the unlock test, the original was at 225.00s when the phone was unlocked 140s after the start. Of that, 50 silences of 3s had been skipped, so 75s of beeps had played in 140s of wall time: 65s lost, 1.3s for each skip. A seek by setting currentTime leaves a gap about 1.3s long at every cut, whether Safari stalls or plays on until the seek lands. With 600+ cuts an episode, that is over 13 minutes of gaps, so seeking is not usable for this. Next step if this goes ahead: decode the audio and schedule only the parts kept with Web Audio, which plays them back to back without seeking. Whether Web Audio keeps playing on a locked iPhone needs its own test.
DeadAir: play at once by skipping silences, and move to the copy when it is readyto DeadAir: start an episode at once and move to the shortened copy when it is readyNo longer needed: DeadAir no longer makes copies (#181). The playlist is ready a few seconds after the download (2.4s for the first episode in production), so there is nothing to switch to mid-play.