---
title: "outputPresentationCommands(for:)"
framework: Immersive Media Support
role: symbol
role_heading: Instance Method
platforms: [iOS 26.4+, iPadOS 26.4+, Mac Catalyst 26.4+, macOS 26.0+, visionOS 26.0+]
path: "immersivemediasupport/presentationdescriptorreader/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.

## Declaration

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

## Parameters

- `time`: PTS time to query for commands

## Return Value

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