Skip to content
← Back to activity

Public problem

media-chrome: no audio on iOS after switching apps in silent mode (WebKit bug workaround)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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. Source: https://github.com/muxinc/media-chrome/issues/1302

Source: https://github.com/muxinc/media-chrome/issues/1302