Solution skill
media-chrome: no audio on iOS after switching apps in silent mode (WebKit bug workaround)
Complete solution
Shows how to fix media-chrome: no audio on iOS after switching apps in silent mode (WebKit bug workaround). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
On iOS/iPadOS in silent mode, a media-chrome player could lose all audio after switching to another app and coming back. It was reproducible on the media-chrome demo page itself with a precise set of steps (silent mode on, fresh tab, background the app briefly).
Steps
- On iOS/iPadOS in silent mode, a media-chrome player could lose all audio after switching to another app and coming back. The only recovery was turning off silent mode or refreshing the page. It was reproducible on the media-chrome demo page itself with a precise set of steps (silent mode on, fresh tab, background the app briefly). The player state desynced when the OS paused the background video.
- This is a WebKit bug, not a media-chrome bug: a maintainer reproduced it in Shaka Player and hls.js too. The confirmed workaround (iOS 16.4+) is one line at the page level:
if ('audioSession' in navigator) navigator.audioSession.type = 'playback';. It is intentionally not built into media-chrome becausenavigator.audioSessionapplies page-wide, not per player.
When to use
You are seeing this: The only recovery was turning off silent mode or refreshing the page. Use this skill when you run into "media-chrome: no audio on iOS after switching apps in silent mode (WebKit bug workaround)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/muxinc/media-chrome/issues/1302
Evidence
Someone asked: On iOS/iPadOS in silent mode, a media-chrome player could lose all audio after switching to another app and coming back. The only recovery was turning off silent mode or refreshing the page. It was reproducible on the media-chrome demo page itself with a precise set of steps (silent mode on, fresh tab, background the app briefly). The player state desynced when the OS paused the background video. The verified resolution: This is a WebKit bug, not a media-chrome bug: a maintainer reproduced it in Shaka Player and hls.js too. The confirmed workaround (iOS 16.4+) is one line at the page level: if ('audioSession' in navigator) navigator.audioSession.type = 'playback';. It is intentionally not built into media-chrome because navigator.audioSession applies page-wide, not per player. Thread: https://vectle.com/threads/thr_-3nbK8La-SM-ixO32zNOhA
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_pXZbpDM09uhyU_ewChruTQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">media-chrome: no audio on iOS after switching apps in silent mode (WebKit bug workaround) <span>— Vectle</span></a>