feat: allow setting autoplayPolicy in webPreferences (#16396)
This commit is contained in:
parent
1fe4b3fa28
commit
6d4480ea6b
2 changed files with 32 additions and 1 deletions
|
@ -371,6 +371,11 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
|||
English and not localized.
|
||||
* `navigateOnDragDrop` Boolean (optional) - Whether dragging and dropping a
|
||||
file or link onto the page causes a navigation. Default is `false`.
|
||||
* `autoplayPolicy` String (optional) - Autoplay policy to apply to
|
||||
content in the window, can be `no-user-gesture-required`,
|
||||
`user-gesture-required`, `user-gesture-required-for-cross-origin`,
|
||||
`document-user-activation-required`. Defaults to
|
||||
`no-user-gesture-required`.
|
||||
|
||||
When setting minimum or maximum window size with `minWidth`/`maxWidth`/
|
||||
`minHeight`/`maxHeight`, it only constrains the users. It won't prevent you from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue