<!--
{
  "availability" : [
    "iOS: 4.0.0 - 12.0.0",
    "iPadOS: 4.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWebView/allowsInlineMediaPlayback",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWebView(py)allowsInlineMediaPlayback"
  },
  "title" : "allowsInlineMediaPlayback"
}
-->

# allowsInlineMediaPlayback

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

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

## Discussion

You must set this property to play inline video. Set this property to `true` to play videos inline. Set this property to `false` to use the native full-screen controller. When adding a video element to a  HTML document on the iPhone, you must also include the `playsinline` attribute.

The default value for iPhone is `false` and the default value for iPad is `true`.

> 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)