agello 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/agent-bridge.js +3 -0
package/package.json
CHANGED
package/web/agent-bridge.js
CHANGED
|
@@ -1027,6 +1027,9 @@ class AgentBridge extends HTMLElement {
|
|
|
1027
1027
|
this.#sound = null;
|
|
1028
1028
|
} else {
|
|
1029
1029
|
if (this.#sound) return;
|
|
1030
|
+
// iOS Safari mutes Web Audio with the ring/silent switch unless the
|
|
1031
|
+
// page's audio session is "playback" (Safari 16.4+).
|
|
1032
|
+
try { if (navigator.audioSession) navigator.audioSession.type = "playback"; } catch {}
|
|
1030
1033
|
const ctx = new AudioContext();
|
|
1031
1034
|
ctx.resume().catch(() => {});
|
|
1032
1035
|
const es = new EventSource(`${this.server}/screen/audio`);
|