---
title: WKInterfaceInlineMovie
framework: watchkit
role: symbol
role_heading: Class
path: watchkit/wkinterfaceinlinemovie
---

# WKInterfaceInlineMovie

An interface element that displays a video’s poster image and supports inline playing of the video.

## Declaration

```swift
class WKInterfaceInlineMovie
```

## Overview

Overview In watchOS 2.0, you had to display video content using a WKInterfaceMovie object. This object displayed a poster image for the video, and when the user tapped the poster image, the video was shown in a separate, full-screen, modal view. The WKInterfaceInlineMovie object also lets you display a poster image for your video; however, when the poster is tapped, this video replaces the poster image and plays in place. You can also create videos that play automatically as soon as the scene is presented. Do not subclass or create instances of this class yourself. Instead, define outlets in your interface controller class and connect them to the corresponding objects in your storyboard file. For example, to refer to a movie object in your interface, define a property with the following syntax in your interface controller class: During the initialization of your interface controller, WatchKit creates any needed inline movie objects and assigns them to their associated outlets. At that point, you can use those objects to make changes to the onscreen content. Do not attempt to play audio or video content while gathering heart rate data using Health Kit. If you use this class to play media, WatchKit automatically disables the gathering of heart rate data. Supported Media Formats The following table lists the encoding information to use when creating media files to play on a user’s Apple Watch. For audio and video assets played directly from your app, keep your clips relatively short. Short clips consume less space on disk, use less power, and take less time to download.  |   |   |  Interface Builder Configuration Options Xcode lets you configure information about your inline movie interface object in your storyboard file. The following table lists the attributes you can configure and their meaning.  |   |   |   |   |

## Topics

### Setting Movie Properties

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

### Controlling Playback

- [pause()](watchkit/wkinterfaceinlinemovie/pause().md)
- [play()](watchkit/wkinterfaceinlinemovie/play().md)
- [playFromBeginning()](watchkit/wkinterfaceinlinemovie/playfrombeginning().md)

### Initializing for SwiftUI

- [init()](watchkit/wkinterfaceinlinemovie/init().md)

## Relationships

### Inherits From

- [WKInterfaceObject](watchkit/wkinterfaceobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Images and movies

- [WKInterfaceImage](watchkit/wkinterfaceimage.md)
- [WKImage](watchkit/wkimage.md)
- [WKImageAnimatable](watchkit/wkimageanimatable.md)
- [WKInterfaceMovie](watchkit/wkinterfacemovie.md)
- [WKInterfaceHMCamera](watchkit/wkinterfacehmcamera.md)
- [WKVideoGravity](watchkit/wkvideogravity.md)
