feat: expose audio-state-changed on webContents (#37366)

feat: expose audio-state-changed on webContents
This commit is contained in:
Shelley Vohr 2023-03-06 17:00:24 +01:00 committed by GitHub
parent c8f715f9a1
commit 512e56baf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 3 deletions

View file

@ -635,6 +635,15 @@ Emitted when media starts playing.
Emitted when media is paused or done playing.
#### Event: 'audio-state-changed'
Returns:
* `event` Event<>
* `audible` boolean - True if one or more frames or child `webContents` are emitting audio.
Emitted when media becomes audible or inaudible.
#### Event: 'did-change-theme-color'
Returns: