---
title: "isPlayingAudio(for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensiontab/isplayingaudio(for:)"
---

# isPlayingAudio(for:)

Called to check if the tab is currently playing audio.

## Declaration

```swift
optional func isPlayingAudio(for context: WKWebExtensionContext) -> Bool
```

## Parameters

- `context`: The context in which the web extension is running.

## Discussion

Discussion Defaults to NO if not implemented.
