<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/setAllMediaPlaybackSuspended(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC28setAllMediaPlaybackSuspendedyySbYaF"
  },
  "title" : "setAllMediaPlaybackSuspended(_:)"
}
-->

# setAllMediaPlaybackSuspended(_:)

Changes whether the webpage is suspending playback of all media in the page.

```
@MainActor final func setAllMediaPlaybackSuspended(_ suspended: Bool) async
```

## Parameters

`suspended`

Indicates whether the webpage should suspend media playback.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)