CoderLine / alphaTab

alphaTab is a cross platform music notation and guitar tablature rendering library.
http://www.alphatab.net
Mozilla Public License 2.0
1.24k stars 202 forks source link

Audio not playing on safari mobile (17.6.1) #1684

Open dovidio opened 2 weeks ago

dovidio commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

When clicking play on the tab, no audio is being played. The tab "works" (e.g. scrolling works) but no audio is being played.

Expected Behavior

Audio should play

Steps To Reproduce

  1. go to alpha tab. and play the file. No audio is being triggered

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.3

Platform

Web

Environment

- **OS**: iOS 17.6.1
- **Browser**: safari
- **.net Version**:

Anything else?

Interestingly, if I open a new tab and play a YouTube video while the tab is being played, the audio is now being reproduced. I can then stop and pause or refresh the page and audio will still work. When closing safari and opening it again it stops playing.

https://github.com/user-attachments/assets/283e45bf-a016-4874-92e9-1ea4023ec886

Danielku15 commented 2 weeks ago

Unfortunately I don't have a device with your exact version available but for me its working fine using Browserstack with iPhone 15 iOS v17.5. Unfortunately on iPhone 16 iOS v18 i cannot hear any audio on browserstack (for any website and both chrome and safari) so its hard to reproduce.

It sounds to me like a system level problem of audio being blocked. Can you check if following websites are generating a sound for you. This would at least tell us if it is a general browser/OS problem or something that alphaTab does wrong.