Contents

setMovieURL(_:)

Sets the URL of the movie to play.

Declaration

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 TP40014969 CH29 in TP40014969.

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