---
title: "setAutoplays(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfaceinlinemovie/setautoplays(_:)"
---

# setAutoplays(_:)

Sets a Boolean value indicating whether the movie automatically begins playing as soon as the scene is presented.

## Declaration

```swift
func setAutoplays(_ autoplays: Bool)
```

## Parameters

- `autoplays`: A Boolean value indicating the movie’s autoplay behavior. Specify doc://com.apple.documentation/documentation/Swift/true to have the movie automatically play as soon as the scene is presented. If set to doc://com.apple.documentation/documentation/Swift/false, the inline movie object displays the poster image instead. The movie does not begin playing until the user taps the poster, or until you programmatically call either the doc://com.apple.watchkit/documentation/WatchKit/WKInterfaceInlineMovie/play() or doc://com.apple.watchkit/documentation/WatchKit/WKInterfaceInlineMovie/playFromBeginning() method. Defaults to doc://com.apple.documentation/documentation/Swift/true.

## See Also

### Setting Movie Properties

- [setLoops(_:)](watchkit/wkinterfaceinlinemovie/setloops(_:).md)
- [setMovieURL(_:)](watchkit/wkinterfaceinlinemovie/setmovieurl(_:).md)
- [setPosterImage(_:)](watchkit/wkinterfaceinlinemovie/setposterimage(_:).md)
- [setVideoGravity(_:)](watchkit/wkinterfaceinlinemovie/setvideogravity(_:).md)
