WebKit2.WebView.prototype.is_playing_audio

function is_playing_audio(): Boolean {
    // Gjs wrapper for webkit_web_view_is_playing_audio()
}
  

Gets the value of the WebKit2.WebView.is_playing_audio property. You can monitor when a page in a WebKit2.WebView is playing audio by connecting to the notify::is-playing-audio signal of web_view. This is useful when the application wants to provide visual feedback when a page is producing sound.

Since 2.8

Returns

true if a page in web_view is playing audio or false otherwise.