isPlayingAudio method

  1. @SupportedPlatforms.new(platforms: [LinuxPlatform(apiName: 'webkit_web_view_is_playing_audio', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.is_playing_audio.html', available: '2.8')])
Future<bool> isPlayingAudio()

Returns whether the webpage is playing audio.

Returns true if the page is playing audio, false otherwise. This is useful for providing visual feedback when a page is producing sound.

Officially Supported Platforms/Implementations:

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    LinuxPlatform(
      apiName: 'webkit_web_view_is_playing_audio',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.is_playing_audio.html',
      available: '2.8',
    ),
  ],
)
Future<bool> isPlayingAudio() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.isPlayingAudio.name} is not implemented on the current platform',
  );
}