isPlayingAudio method
- @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')])
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:
- Linux WPE WebKit 2.8+ (Official API - webkit_web_view_is_playing_audio)
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',
);
}