mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 01:04:05 +01:00
Allow autoplay on iOS
This commit is contained in:
parent
06e91aa8b7
commit
ccb813f6ec
@ -23,7 +23,7 @@ class PreloadedWebView: WKWebView {
|
|||||||
configuration.preferences = preferences
|
configuration.preferences = preferences
|
||||||
configuration.setValue(true, forKey: "allowUniversalAccessFromFileURLs")
|
configuration.setValue(true, forKey: "allowUniversalAccessFromFileURLs")
|
||||||
configuration.allowsInlineMediaPlayback = true
|
configuration.allowsInlineMediaPlayback = true
|
||||||
configuration.mediaTypesRequiringUserActionForPlayback = .video
|
configuration.mediaTypesRequiringUserActionForPlayback = .audio
|
||||||
configuration.setURLSchemeHandler(articleIconSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme)
|
configuration.setURLSchemeHandler(articleIconSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme)
|
||||||
|
|
||||||
super.init(frame: .zero, configuration: configuration)
|
super.init(frame: .zero, configuration: configuration)
|
||||||
|
Loading…
Reference in New Issue
Block a user