Skip to content

Engine v2.11

Latest

Choose a tag to compare

@DozenTwelve DozenTwelve released this 07 Nov 01:56
· 67 commits to main since this release

Sound on iPhone and iPad. Sync with python3 .claude/skills/papermorph/scripts/engine.py site.

iOS lets a media element play on its own only if that same element once played inside a real tap. The engine made a new Audio element for every beat, so on every iOS browser the narration after the first beat was refused and the film went on silent; a listen-and-find stop's lines and chime were refused the same way.

  • Narration plays through a fixed pair of media elements (the current clip and the next one's preload), readied inside the first tap, so every beat is heard on iOS.
  • Listen-and-find lines and the chime play through elements readied the same way.
  • Elements are readied only on a real tap (touchend, click, a key, a mouse press): iOS plays muted sound on a touch's pointerdown without counting it as a tap, which had left the narration looking ready when it was not.
  • The silence used to ready an empty element is an MP3 that iOS decodes.
  • A narration clip whose play never took is asked again twice a second instead of leaving the beat silent.

A chapter's own new Audio() played outside a tap is still silent on iOS; engine.md says so.