From 8db4f5a5a1e05703c147e819c43cde993de64fc4 Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Sun, 2 Aug 2026 22:13:54 +0200 Subject: [PATCH] chore: ios playback improvements pt. 1 --- src/components/engine/audio/element.js | 32 +++++++++------- tests/components/engine/audio/test.ts | 52 ++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 14 deletions(-) diff --git a/src/components/engine/audio/element.js b/src/components/engine/audio/element.js index 5f66cfe7..2735d224 100644 --- a/src/components/engine/audio/element.js +++ b/src/components/engine/audio/element.js @@ -19,6 +19,15 @@ import { computed, signal, untracked } from "~/common/signal.js"; const SILENT_MP3 = "data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjM2LjEwMAAAAAAAAAAAAAAA//OEAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAEAAABIADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV6urq6urq6urq6urq6urq6urq6urq6urq6v////////////////////////////////8AAAAATGF2YzU2LjQxAAAAAAAAAAAAAAAAJAAAAAAAAAAAASDs90hvAAAAAAAAAAAAAAAAAAAA//MUZAAAAAGkAAAAAAAAA0gAAAAATEFN//MUZAMAAAGkAAAAAAAAA0gAAAAARTMu//MUZAYAAAGkAAAAAAAAA0gAAAAAOTku//MUZAkAAAGkAAAAAAAAA0gAAAAANVVV"; +/** + * Mobile Safari caps the number of live media elements and behaves poorly + * when fresh