| Summary: | WKWebView configuration mediaTypesRequiringUserActionForPlayback not working after iOS 16.3.1 update | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | vaibhav garg <vaibhav.garg> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | eric.carlson, jer.noble, vaibhav.garg, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 16 | ||
|
Description
vaibhav garg
2023-04-27 22:21:18 PDT
Factory resetting the device fixes the issue, solution this extreme is not desirable Given that a factory reset has fixed this, not sure if there is strong evidence that this is a general regression. Have you observed this on multiple devices? `configuration.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone` is used successfully in many WebKit API tests This configuration is being used by our app since a long time and was working fine till iOS 16.3.1 and I did receive this issue on multiple device including company and customer iPads Can you verify that you're changing the value of `mediaTypesRequiringUserActionForPlayback` _before_ you call `-[WKWebView initWithFrame:configuration:]` and not after? Or better yet, give us a code snippet of your initialization logic? WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init]; [configuration setMediaTypesRequiringUserActionForPlayback:WKAudiovisualMediaTypeNone]; WKWebView *webView = [[WKWebView alloc] initWithFrame:[Constants landscapeScreenFrame] configuration:configuration]; Hi, above is the exact objective c code that i am using for web view initialization |