From d2e14fc935e6ab7934564edc0d55f8153549ebc8 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 29 Mar 2022 10:55:45 -0700 Subject: [PATCH] Allow video playback on iOS Example page: https://www.technologyreview.com/2022/03/28/1048355/quantum-computing-has-a-hype-problem --- apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift b/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift index f485ed446..07e458365 100644 --- a/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift +++ b/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift @@ -10,7 +10,8 @@ enum WebViewConfigurationManager { static func create() -> WKWebViewConfiguration { let config = WKWebViewConfiguration() config.processPool = processPool - // config.limitsNavigationsToAppBoundDomains = true + config.allowsInlineMediaPlayback = true + config.mediaTypesRequiringUserActionForPlayback = .audio return config } }