---
title: WKMediaPlayerControllerOptionsVideoGravityKey
framework: watchkit
role: symbol
role_heading: Global Variable
path: watchkit/wkmediaplayercontrolleroptionsvideogravitykey
---

# WKMediaPlayerControllerOptionsVideoGravityKey

The behavior for resizing the video to fit the available space. The value of this key is an NSNumber object containing an appropriate constant of the WKVideoGravity type.

## Declaration

```swift
let WKMediaPlayerControllerOptionsVideoGravityKey: String
```

## See Also

### Constants

- [WKMediaPlayerControllerOptionsAutoplayKey](watchkit/wkmediaplayercontrolleroptionsautoplaykey.md)
- [WKMediaPlayerControllerOptionsStartTimeKey](watchkit/wkmediaplayercontrolleroptionsstarttimekey.md)
- [WKMediaPlayerControllerOptionsLoopsKey](watchkit/wkmediaplayercontrolleroptionsloopskey.md)
