---
title: "setRecordsVideoOrientationAndMirroringChangesAsMetadataTrack(_:for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturemoviefileoutput/setrecordsvideoorientationandmirroringchangesasmetadatatrack(_:for:)"
---

# setRecordsVideoOrientationAndMirroringChangesAsMetadataTrack(_:for:)

Sets whether the movie file output creates a timed metadata track to capture changes to the connection’s video orientation and mirroring.

## Declaration

```swift
func setRecordsVideoOrientationAndMirroringChangesAsMetadataTrack(_ doRecordChanges: Bool, for connection: AVCaptureConnection)
```

## Parameters

- `doRecordChanges`: A Boolean value that indicates whether to capture orientation and mirroring information. The system observes this value only at the start of recording. Setting a different value has no effect until you start a new recording.
- `connection`: A connection that delivers video media to the movie file output. This method throws an invalid argument exception if the value isn’t a video connection or if the connection doesn’t terminate at the movie file output.

## See Also

### Setting orientation

- [recordsVideoOrientationAndMirroringChangesAsMetadataTrack(for:)](avfoundation/avcapturemoviefileoutput/recordsvideoorientationandmirroringchangesasmetadatatrack(for:).md)
