Skip to content

iOS and iPadOS no audio after switching applications in silent mode #1302

Description

@danwater

Description of Issue

When using an iOS or iPadOS device in silent mode, it is possible to get the player into a state where upon returning from a different application the audio will not play unless you turn off silent mode or refresh the page. It only seems to appear under a very specific set of steps, see steps below for a reliably way to reproduce. This bug appears in our own usage of media-chrome and I am also able to reproduce this on the media-chrome demo page, https://www.media-chrome.org/.

I am unsure of the exact cause of the bug and only following these exact kind of steps does it reliably reoccur. For example, it will not occur if you: turn have silent mode off, reusing existing tab or browser instance, staying in a different app for greater than about 10 seconds, or using a Apple desktop browser. I am assuming it has something to do with the hardware pausing the background video while in silent mode and the player state is getting out of sync upon return. As another point of reference from our own application, when we push play the audio starts playing by default and the issue still occurs, however I was only able to reproduce on the media-chrome test site if I had played the video muted first. If you need additional information please let me know.

Steps to Reproduce

  1. From an iOS or iPad Device, turn on silent mode.
  2. Open a new tab and browser instance of Safari or Chrome.
  3. Ensure video is muted and click play.
  4. Unmute the video and then allow it to play for about 5seconds
  5. Switch out of the browser and into any other application for about 5 seconds. Video should pause in the background.
  6. Return back to the existing player browser tab.

Bug

  • The video will be paused but the onscreen controls look like the video is playing
  • Pausing, then playing the video will cause the video to play but the audio will not work.
  • Muting and unmuting the video will not fix the issue.
  • Refreshing the page or turning off silent mode and the audio will return.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions