The behavior of the Chromium component can be controlled through various command line switches. In my case i'd like to pass "--autoplay-policy=no-user-gesture-required" to enable the autoplay of video.
But i think there could be other use cases as well.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
While I wouldn't mind a dedicated API, please not that as a workaround you can call:
wxSetEnv("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS", "--autoplay-policy=no-user-gesture-required");
This has to be called before creating the first wxWebView using the edge backend
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Thanks for the quick answer, that's very neat.
How would i pass multiple arguments, additional wxSetEnv() calls, or one call with arguments separated by a space?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Separated by space should be the correct way. Multiple calls would just overwrite the environment variable.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
In that case a public API might not be needed at all. It might be worth mentioning your solution in the documentation.
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #22506 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()