We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
求教大佬,我在自己的项目里使用 settings.CefCommandLineArgs["autoplay-policy"] = "no-user-gesture-required";,可是还需要手动启用插件。
settings.CefCommandLineArgs["autoplay-policy"] = "no-user-gesture-required";
.net framework 4.7.2 CefSharp 79.1.360
The text was updated successfully, but these errors were encountered:
这个参数是音视频的自动播放策略,添加 settings.CefCommandLineArgs["autoplay-policy"] = "no-user-gesture-required"; 允许网页的音视频自动播放,但 Flash 插件的内容不会受这个影响。 要让 Flash 内容自动播放的话我用的方法是在 IsBrowserInitializedChanged 事件中将 profile.default_content_setting_values.plugins 设为1,这样 Flash 内容就可以自动播放了,详见: https://github.com/Mzying2001/CefFlashBrowser/blob/master/CefFlashBrowser.FlashBrowser/ChromiumFlashBrowserBase.cs#L17
IsBrowserInitializedChanged
profile.default_content_setting_values.plugins
Sorry, something went wrong.
感谢大佬,看源码正好看到这了(๑•̀ㅂ•́)و✧
No branches or pull requests
求教大佬,我在自己的项目里使用
settings.CefCommandLineArgs["autoplay-policy"] = "no-user-gesture-required";
,可是还需要手动启用插件。.net framework 4.7.2
CefSharp 79.1.360
The text was updated successfully, but these errors were encountered: