Files
open-webui/src/lib/components/chat/Messages
Classic298 7924ce7d79 fix: unhandled play() rejection wedges the Read Aloud button; auto-playback silent on iOS (#30373)
On iOS and iPadOS, auto-playback of a finished reply is never heard and the speaker button stays stuck in "speaking", so the first tap only stops a playback that never started. WebKit rejects play() started from a network event, and the audio queue ignored that rejection, so its state never reset. Call mode on the same devices was silent too.

A rejected play() now resets the queue, returns the button to idle and shows a toast (an aborted play from stop or a message switch is ignored). The first user tap or keypress plays a 10 ms silent clip on the shared audio element, which WebKit then allows to play later without a gesture; if that attempt fails it retries on the next gesture. Call mode plays unmuted: WebKit pauses an element that is unmuted after play() outside a gesture, even once unlocked.

The unlock and call mode change follow the reporter's on-device tests (iPhone iOS 27, iPad iPadOS 26.6.2). Verified in Chromium with autoplay restricted: the base queue wedges and drops later chunks; with the fix it reports the error, recovers, the unlock plays once and never interrupts audio already playing, and chunks queued during the unlock still play.

Fixes #30262
2026-09-23 23:52:09 -04:00
..
2026-07-15 04:25:51 -04:00
2026-07-14 04:15:20 -04:00
2026-09-08 13:19:14 -04:00
2026-09-08 13:19:14 -04:00
2026-07-15 22:34:52 -04:00
2026-09-21 00:51:28 -04:00
2026-07-15 22:45:00 -04:00
2026-09-06 19:37:59 -04:00
2026-07-24 00:56:43 -04:00
2025-09-15 13:22:41 -05:00
2026-09-16 22:47:37 -04:00
2026-07-16 00:07:41 -04:00
2026-08-30 17:38:45 -04:00