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

# setMovieURL(_:)

Sets the URL of the movie to play.

## Declaration

```swift
func setMovieURL(_ URL: URL)
```

## Parameters

- `URL`: The URL of the movie to play. The URL must be a file-based URL that refers to a movie or audio file in the appropriate format. The URL must be in a shared location that can be accessed by both the Watch app interface and the WatchKit extension. For more information, see https://developer.apple.com/library/archive/documentation/General/Conceptual/WatchKitProgrammingGuide/SharingData.html#//apple_ref/doc/uid/TP40014969-CH29 in https://developer.apple.com/library/archive/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html#//apple_ref/doc/uid/TP40014969.

## Discussion

Discussion Movies must be local to the device before playback begins. If you specify a URL that is on a remote server, Apple Watch downloads the movie before playing it.

## See Also

### Setting Movie Properties

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