<!--
{
  "availability" : [
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKMediaPlayerControllerOptionsVideoGravityKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:@WKMediaPlayerControllerOptionsVideoGravityKey"
  },
  "title" : "WKMediaPlayerControllerOptionsVideoGravityKey"
}
-->

# WKMediaPlayerControllerOptionsVideoGravityKey

The behavior for resizing the video to fit the available space. The value of this key is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing an appropriate constant of the [`WKVideoGravity`](/documentation/WatchKit/WKVideoGravity) type.

```
let WKMediaPlayerControllerOptionsVideoGravityKey: String
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)