<!--
{
  "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/avPlayer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation13VideoMaterialV8avPlayerSo8AVPlayerCSgvp"
  },
  "title" : "avPlayer"
}
-->

# avPlayer

The material’s video playback controller.

```
@MainActor @preconcurrency var avPlayer: AVPlayer? { get set }
```

## Discussion

Use this property to control animation playback for a video texture.
This property allows you to play or pause the movie, *seek to* (in other
words, skip to) a specific part of the movie, or to change the movie’s
playback rate. The following code demonstrates pausing the texture’s
video and restarting it from the beginning of the movie file:

```swift
myMaterial.avPlayer.pause()
myMaterial.avPlayer.seek(to: .zero)
myMaterial.avPlayer.play()
```

---

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)