[Webkit-unassigned] [Bug 232728] New: AudioContext.currentTime speeds up (and audio won't play) when Bluetooth speaker connected

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 4 15:08:25 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=232728

            Bug ID: 232728
           Summary: AudioContext.currentTime speeds up (and audio won't
                    play) when Bluetooth speaker connected
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: luke at playingbyear.com
                CC: cdumez at apple.com

When certain Bluetooth speakers are connected to certain Apple devices, AudioContext stops behaving properly. The most obvious thing is that my app's audio cuts out after a couple seconds, and will not return until the page is reloaded. Upon further inspection, I discovered that there is actually some *time dilation* going on inside the AudioContext – serious Einstein business!

Minimal reproduction steps, which can be executed on any webpage in Safari after connecting an affected speaker:

  ctx = new AudioContext();
  window.addEventListener('click', () => ctx.resume());
  setInterval(() => console.log(ctx.currentTime), 1000);

After tapping to start the AudioContext, the console should show the current time as increasing by one second every second. When it's acting up, I saw it increasing by 1.84 every second.

Many users have reported this issue to me, who are using various speakers, including expensive Sony and Bose speakers. At least one user has this issue on a Mac, although I have so far only reproduced it on my iPhone with my Tribit XSound Go. I ordered another affected speaker, the OontZ Angle 3 Ultra, and will be testing on that in a few days. The issue is intermittent; it was happening for a solid 30 reloads, and then it fixed itself just now, but I'm sure it'll stop working again. Users have reported that it persists even after multiple device reboots.

This issue first appeared in Safari 15. It also affects Cordova apps in iOS 15.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211104/db832495/attachment.htm>


More information about the webkit-unassigned mailing list