[Webkit-unassigned] [Bug 131581] New: Lag/Latency when playing audio, breaks puzzlescript.net on safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 12 05:37:16 PDT 2014


           Summary: Lag/Latency when playing audio, breaks
                    puzzlescript.net on safari
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.9
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: analytic at gmail.com

Created an attachment (id=229202)
 --> (https://bugs.webkit.org/attachment.cgi?id=229202&action=review)
Click the button, notice latency, clicking lots of times doesn't help.

There's a bit lag when using audio tags.  Check out the demo and click the play sound button, and notice the delay before hearing the sound.  This doesn't occur in chrome or firefox.  I've had several users report this, though it's not universal.  It makes games made with the engine really unplayable for a lot of people in safari.

There are workarounds for audio latency in general using webkitAudioContext - but because the engine generates sound URLs, and because I can't find any way of populating an audiobuffer without using XMLHttpRequest (I've asked around quite a bit and can't find any alternatives), and because safari treats data URIs as being cross-origin requests, I'm stumped.

I thought that using cloneNode().Play() might have been a problem, but even just playing a single audio file once gives this problem (try remove cloneNode() from the example html file).

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list