Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Playback does not begin when audio is muted on iOS (iPhone/iPad) #583

Closed
elynema opened this issue Jul 23, 2024 · 7 comments
Closed
Assignees
Labels
investigation Related research work

Comments

@elynema
Copy link

elynema commented Jul 23, 2024

Describe the bug
When the audio is muted, playback does not begin for audio only items on iOS (both iPhone and iPad). This was replicated in Safari, but reported to be observed across browsers.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://avalon-staging.dlib.indiana.edu/media_objects/rf55z7692 on iPad or iPhone (iOS17) in Safari.
  2. Make sure volume is muted.
  3. Start playback.
  4. Audio will not start and the playback head will not move.
  5. Unmute volume.
  6. Playback will start with audio.
  7. Note: this can be intermittent. It seems to happen most reliably when the audio is already muted, so after page refresh after you have muted audio.

Expected behavior
Playback should begin even if audio is muted.

Screenshots

Screen.Recording.2024-07-23.at.10.56.20.AM.mov

Smartphone (please complete the following information):

  • Device: iPad/iPhone
  • OS: iOS17
  • Browser: Safari (and presumably Chrome)
@elynema elynema changed the title [BUG] Playback head stuck when audio is muted on iOS (iPhone/iPad) [BUG] Playback does not begin when audio is muted on iOS (iPhone/iPad) Jul 23, 2024
@elynema
Copy link
Author

elynema commented Jul 23, 2024

Could it possibly be a feature of iOS/Safari that playback of an audio item will not begin if it is muted?

@elynema elynema added the investigation Related research work label Jul 23, 2024
@Dananji Dananji self-assigned this Jul 24, 2024
@Dananji
Copy link
Collaborator

Dananji commented Jul 24, 2024

I tested the audio cookbook recipe in this specific environment, and it plays and updates the UI as expected with these settings.

@Dananji
Copy link
Collaborator

Dananji commented Jul 25, 2024

I tested with an audio manifest from one of Northwestern's collections, and observed the same behavior.

I tested this issue in Chrome on iOS in both iPhone and iPad, and observed the same behavior.
In desktop browsers; both Firefox, Chrome played the media when muted but not Safari.

I was not able to find anything that explains this behavior in relation to Apple's system settings on the internet.

@elynema and @joncameron;
One solution we could implement is unmute the audio player on page load in the environments we are seeing this behavior. What do you think?

@elynema
Copy link
Author

elynema commented Jul 31, 2024

In Safari, when audio is muted, it never gets to the point where the player is ready to play the media. Same issue when we were trying to activate the buttons in the iOS player b/c the player was not ready enough to have everything ready to play, even when the loaded metadata event has fired. Another event called 'canPlay' - ready state never reaches 4 in Safari when the audio is muted.

@abankhele
Copy link

I can replicate this issue on ipad and iPhone (iOS17) in Safari. It only happens when you mute the media player refresh the URL and then click play on the audio.

@elynema
Copy link
Author

elynema commented Oct 2, 2024

We do not see this problem if you just load the page, mute the audio, and then play the media.

@elynema
Copy link
Author

elynema commented Oct 2, 2024

Not 100% sure when we pulled a new Ramp build into Avalon, so I've asked Akanksha to test this on the Ramp demo site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation Related research work
Projects
None yet
Development

No branches or pull requests

3 participants