Skip to content

Commit 52f58f5

Browse files
committed
wkwebview: set none for mediaTypesRequiringUserActionForPlayback
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 2aec9fd commit 52f58f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

distrho/extra/WebViewImpl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ WebViewHandle webViewCreate(const char* const url,
452452

453453
WKWebViewConfiguration* const config = [[WKWebViewConfiguration alloc] init];
454454
config.limitsNavigationsToAppBoundDomains = false;
455+
config.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone;
455456
config.preferences = prefs;
456457

457458
const CGRect rect = CGRectMake(options.offset.x / scaleFactor,

0 commit comments

Comments
 (0)