---
title: controller
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/videomaterial/controller
---

# controller

An object that configures framework-specific video options.

## Declaration

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

## Discussion

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: material.controller.audioInputMode = .spatial

## See Also

### Controlling playback

- [avPlayer](realitykit/videomaterial/avplayer.md)
