Merge pull request #1980 from magicae/set-audio-mute

webContents: add setAudioMuted to webContents
This commit is contained in:
Cheng Zhao 2015-06-16 14:46:31 +08:00
commit bf9af4d45b
5 changed files with 34 additions and 0 deletions

View file

@ -877,6 +877,16 @@ Injects CSS into this page.
Evaluates `code` in page.
### WebContents.setAudioMuted(muted)
+ `muted` Boolean
Set the page muted.
### WebContents.isAudioMuted()
Returns whether this page has been muted.
### WebContents.undo()
Executes editing command `undo` in page.

View file

@ -250,6 +250,16 @@ Starts inspecting element at position (`x`, `y`) of guest page.
Opens the devtools for the service worker context present in the guest page.
### `<webview>`.setAudioMuted(muted)
+ `muted` Boolean
Set guest page muted.
### `<webview>`.isAudioMuted()
Returns whether guest page has been muted.
### `<webview>`.undo()
Executes editing command `undo` in page.