<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/VideoMaterial/controller",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation13VideoMaterialV10controllerAA0C18PlaybackControllerCvp"
  },
  "title" : "controller"
}
-->

# controller

An object that configures framework-specific video options.

```
var controller: VideoPlaybackController { get }
```

## Discussion

Use this property to configure AR-specific properties of the texture’s
video, such as whether the material should use spatial audio.

The following example demonstrates enabling spatial audio for a video
material:

```swift
material.controller.audioInputMode = .spatial
```

---

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)