We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0f3f09 commit 75f1112Copy full SHA for 75f1112
1 file changed
Sources/WebView/YouTubePlayerWebView.swift
@@ -56,6 +56,19 @@ final class YouTubePlayerWebView: WKWebView {
56
} else {
57
configuration.preferences.setValue(isElementFullscreenEnabled, forKey: "fullScreenEnabled")
58
}
59
+
60
+// config.mediaTypesRequiringUserActionForPlayback = []
61
62
+ // Désactiver le rendu hardware-accelerated
63
+ if #available(iOS 14.0, *) {
64
+// config.preferences.setValue(false, forKey: "allowsInlineMediaPlaybackAfterFullscreen")
65
+// config.setValue(false, forKey: "allowsInlineMediaPlayback")
66
+ }
67
68
+ // Forcer le rendu software
69
+ config.preferences.setValue(false, forKey: "acceleratedDrawingEnabled")
70
+ config.preferences.setValue(false, forKey: "canvasUsesAcceleratedDrawing")
71
72
return configuration
73
}()
74
)
0 commit comments