<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImmersiveMediaSupport",
  "identifier" : "/documentation/ImmersiveMediaSupport/PresentationDescriptorReader/outputPresentationCommands(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Immersive Media Support"
    ],
    "preciseIdentifier" : "s:21ImmersiveMediaSupport28PresentationDescriptorReaderC06outputD8Commands3forSayAA0D7CommandOGSgSo6CMTimea_tF"
  },
  "title" : "outputPresentationCommands(for:)"
}
-->

# outputPresentationCommands(for:)

This function returns all presentation commands to be muxed into an MOV during an `AVAssetWriter` session. Don’t use this function
for playback rendering.

```
func outputPresentationCommands(for time: CMTime) -> [PresentationCommand]?
```

## Parameters

`time`

PTS time to query for commands

## Return Value

An array of PresentationCommand instances representing the commands that need to be included in the output file for that PTS.

---

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)