From cd51bae852d9c97b1c4727373bdf319fb96f6034 Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Sun, 2 Aug 2026 22:28:01 +0200 Subject: [PATCH] chore: ios playback improvements pt. 2 --- src/components/engine/audio/element.js | 145 ++++++++++++++++++++----- 1 file changed, 116 insertions(+), 29 deletions(-) diff --git a/src/components/engine/audio/element.js b/src/components/engine/audio/element.js index 2735d224..b72d84f9 100644 --- a/src/components/engine/audio/element.js +++ b/src/components/engine/audio/element.js @@ -16,9 +16,6 @@ import { computed, signal, untracked } from "~/common/signal.js"; //////////////////////////////////////////// // CONSTANTS //////////////////////////////////////////// -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