<!--
{
  "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/ShotFlopCommand",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Immersive Media Support"
    ],
    "preciseIdentifier" : "s:21ImmersiveMediaSupport15ShotFlopCommandV"
  },
  "title" : "ShotFlopCommand"
}
-->

# ShotFlopCommand

A command type to flip the video frames horizontally (mirrored horizontally) during playback for the duration of the command.

```
struct ShotFlopCommand
```

## Topics

### Initializers

[`init(from: any Decoder) throws`](/documentation/ImmersiveMediaSupport/ShotFlopCommand/init(from:))

### Instance Properties

[`var duration: CMTime`](/documentation/ImmersiveMediaSupport/ShotFlopCommand/duration)

The duration of the command.

[`var id: Int`](/documentation/ImmersiveMediaSupport/ShotFlopCommand/id)

A unique command ID for the immersive media file.

[`var offset: CMTime?`](/documentation/ImmersiveMediaSupport/ShotFlopCommand/offset)

The offset from the start time of this command.

[`var time: CMTime`](/documentation/ImmersiveMediaSupport/ShotFlopCommand/time)

The time this command starts during playback.

### Instance Methods

[`func encode(to: any Encoder) throws`](/documentation/ImmersiveMediaSupport/ShotFlopCommand/encode(to:))

### Initializers

[`init(id: Int, time: CMTime, duration: CMTime, offset: CMTime?)`](/documentation/ImmersiveMediaSupport/ShotFlopCommand/init(id:time:duration:offset:))

Creates a command instance for a certain time, duration and offset.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)