---
title: requiresUserActionForMediaPlayback
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebviewconfiguration/requiresuseractionformediaplayback
---

# requiresUserActionForMediaPlayback

A Boolean value that indicates whether HTML5 videos require the user to start playing them (true) or whether the videos play automatically (false).

## Declaration

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

## See Also

### Deprecated

- [mediaPlaybackAllowsAirPlay](webkit/wkwebviewconfiguration/mediaplaybackallowsairplay.md)
- [mediaPlaybackRequiresUserAction](webkit/wkwebviewconfiguration/mediaplaybackrequiresuseraction.md)
