---
title: allowsInlineMediaPlayback
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebviewconfiguration/allowsinlinemediaplayback
---

# allowsInlineMediaPlayback

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

## Declaration

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

## Discussion

Discussion Set this property to true to play videos inline, or 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 false for iPhone and true for iPad. important: Apps created before iOS 10.0 must use the webkit-playsinline attribute.

## See Also

### Setting media playback preferences

- [allowsAirPlayForMediaPlayback](webkit/wkwebviewconfiguration/allowsairplayformediaplayback.md)
- [allowsPictureInPictureMediaPlayback](webkit/wkwebviewconfiguration/allowspictureinpicturemediaplayback.md)
- [mediaTypesRequiringUserActionForPlayback](webkit/wkwebviewconfiguration/mediatypesrequiringuseractionforplayback.md)
- [WKAudiovisualMediaTypes](webkit/wkaudiovisualmediatypes.md)
