[Webkit-unassigned] [Bug 204261] New: iOS 13 html audio tag is totally broken: MediaPlayback entitlements error.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 15 16:12:31 PST 2019


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

            Bug ID: 204261
           Summary: iOS 13 html audio tag is totally broken: MediaPlayback
                    entitlements error.
           Product: WebKit
           Version: Safari 13
          Hardware: iPhone / iPad
                OS: iOS 13
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: distinctdan at gmail.com

I have a cordova game running a wkwebview on iPadOS 13.2.2 and I'm trying to play an html audio element that's connected to an AudioContext. However, the audio never plays at all. No javascript errors are thrown, and everything appears perfectly happy from the js side. I'm not trying to do background audio, this is just normal foreground audio. Here's the native error that's thrown:


2019-11-15 18:27:09.610800-0500 Orbus[9045:99562] [assertion] Error acquiring assertion: <NSError: 0x2811ddfe0; domain: RBSAssertionErrorDomain; code: 2; reason: "Client is missing required entitlement"> {
    userInfo = {
        RBSAssertionAttribute = <RBSLegacyAttribute: 0x111048cf0; requestedReason: MediaPlayback; reason: MediaPlayback; flags: PreventTaskSuspend | PreventTaskThrottleDown | WantsForegroundResourcePriority>;
    }
}
2019-11-15 18:27:09.610840-0500 Orbus[9045:99562] [ProcessSuspension]  0x108ee7138 - ProcessAssertion() PID 9045 Unable to acquire assertion for process with PID 9045
2019-11-15 18:27:09.610894-0500 Orbus[9045:99269] [ProcessSuspension] 0x108ee7138 - ProcessAssertion::processAssertionWasInvalidated()


My code checks for the state of the audio context and waits for a user interaction if necessary (which shouldn't be necessary in a webview anyways), but iOS tells the js that everything is fine. This used to work fine in iOS 12. Also, weirdly enough, the audio does play in an iPadOs 13.2.2 simulator even though the error is still thrown. However, when running on an identical real device, it doesn't play. Seems like just regular old audio playing shouldn't require any sort of special entitlement. Music is an important part of my app, so this is a pretty big deal to me. Any workarounds would also be welcome.

-- 
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/20191116/2e2504a5/attachment-0001.htm>


More information about the webkit-unassigned mailing list