paulrosen / abcjs

javascript for rendering abc music notation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audio is not playing on mobile Safari (iPhone)

alex-titarenko opened this issue · comments

Steps to reproduce

  1. On your iPhone open mobile Safari and navigate to https://www.abcjs.net/
  2. Hit the play button. There is no music, but the progress slider is moving, also there are no console errors.

Environment

iPhone 14, iOS 17.1.2

P.S. I don't know from which version of mobile Safari (iPhone) the issue started but I tested on 2 iPhone 14 and I have the same issue.
Also, on MacBook Safari I don't see the issue and also audio is playing on iPhone simulator from XCode. Looks like the issue only on real device and only on iPhone.

Do you have your phone on silent? I've found that MIDI audio is affected by the silent toggle on my iPhone, unlike regular audio. I haven't researched enough to know if there are any workarounds, other than showing a message to users that they need to turn off silent mode for audio to work.

Wow, thank you so much for your quick response, indeed the issue was with silent mode. Yeah, this is not expected behavior from an iPhone since regular audio is not affected. Will close the issue.