---
title: allowsInlineMediaPlayback
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwebview/allowsinlinemediaplayback
---

# allowsInlineMediaPlayback

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

## Declaration

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

## Discussion

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.

## See Also

### Managing media playback

- [mediaPlaybackRequiresUserAction](uikit/uiwebview/mediaplaybackrequiresuseraction.md)
- [mediaPlaybackAllowsAirPlay](uikit/uiwebview/mediaplaybackallowsairplay.md)
- [allowsPictureInPictureMediaPlayback](uikit/uiwebview/allowspictureinpicturemediaplayback.md)
