diff --git a/.changes/windows-autoplay.md b/.changes/windows-autoplay.md new file mode 100644 index 000000000..0e4cb5f65 --- /dev/null +++ b/.changes/windows-autoplay.md @@ -0,0 +1,5 @@ +--- +wry: patch +--- + +Fixed a regression causing autoplay on windows to require user gestures. diff --git a/src/webview2/mod.rs b/src/webview2/mod.rs index f5b811bdf..7f73d1719 100644 --- a/src/webview2/mod.rs +++ b/src/webview2/mod.rs @@ -264,7 +264,7 @@ impl InnerWebView { let mut arguments = String::from(default_args); if attributes.autoplay { - arguments.push_str("--autoplay-policy=no-user-gesture-required"); + arguments.push_str(" --autoplay-policy=no-user-gesture-required"); } if let Some(proxy_setting) = &attributes.proxy_config {