<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebViewConfiguration/allowsInlineMediaPlayback",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebViewConfiguration(py)allowsInlineMediaPlayback"
  },
  "title" : "allowsInlineMediaPlayback"
}
-->

# allowsInlineMediaPlayback

A Boolean value that indicates whether HTML5 videos play inline or use the native full-screen controller.

```
var allowsInlineMediaPlayback: Bool { get set }
```

## Discussion

Set this property to <doc://com.apple.documentation/documentation/Swift/true> to play videos inline, or <doc://com.apple.documentation/documentation/Swift/false> to use the native full-screen controller. When adding a video element to an HTML document on iPhone, you must also include the `playsinline` attribute.

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false> for iPhone and <doc://com.apple.documentation/documentation/Swift/true> for iPad.

> Important:
> Apps created before iOS 10.0 must use the `webkit-playsinline` attribute.

---

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)