---
title: WKMediaPlayerControllerOptionsLoopsKey
framework: watchkit
role: symbol
role_heading: Global Variable
path: watchkit/wkmediaplayercontrolleroptionsloopskey
---

# WKMediaPlayerControllerOptionsLoopsKey

The behavior for playing the media in a loop. The value of this key is an NSNumber object containing a Boolean value. Set the value to true to play the media file in a loop. If this key is not present, the media file plays one time and then ends.

## Declaration

```swift
let WKMediaPlayerControllerOptionsLoopsKey: String
```

## See Also

### Constants

- [WKMediaPlayerControllerOptionsAutoplayKey](watchkit/wkmediaplayercontrolleroptionsautoplaykey.md)
- [WKMediaPlayerControllerOptionsStartTimeKey](watchkit/wkmediaplayercontrolleroptionsstarttimekey.md)
- [WKMediaPlayerControllerOptionsVideoGravityKey](watchkit/wkmediaplayercontrolleroptionsvideogravitykey.md)
