---
title: autostarts
framework: quicklookui
role: symbol
role_heading: Instance Property
path: quicklookui/qlpreviewview/autostarts
---

# autostarts

A Boolean value that determines whether the preview starts automatically.

## Declaration

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

## Discussion

Discussion Set this property to allow previews of movie files to start playback automatically when displayed.

## See Also

### Displaying a Preview

- [previewItem](quicklookui/qlpreviewview/previewitem.md)
- [refreshPreviewItem()](quicklookui/qlpreviewview/refreshpreviewitem().md)
- [displayState](quicklookui/qlpreviewview/displaystate.md)
