tryphotino / photino.NET

https://tryphotino.io
Apache License 2.0
871 stars 73 forks source link

How to automatically play video + audio in a page #198

Open whgfu opened 1 month ago

whgfu commented 1 month ago

If there is a video file with sound on the page, it cannot be played automatically due to the limitations of Chrome 66. However, when I tested the electron packaged page, it can be played automatically. Can we use photino to achieve this effect by setting parameters?

Chrome 66 autopaly https://developer.chrome.com/blog/autoplay?hl=zh-cn

MikeYeager commented 1 month ago

@whgfu We use WebView2 as the browser control on Windows, WebKitGTK on Linux and WKWebView on Mac. We do support passing startup parameters to each browser control, so if the browser controls support this feature via a switch, you can pass it. From that point, it's up to the what the control supports. Some of the more common switches are supported with custom parameters, but each also supports passing raw parameters as well, so you can pass anything that's supported. how those parameters work and their syntax varies for each control. There is some built-in documentation in the Photino.NET methods and properties descriptions as well as issues here containing links to docs for each control.