<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/Mode-swift.struct/videoRecording",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@AVAudioSessionModeVideoRecording"
  },
  "title" : "videoRecording"
}
-->

# videoRecording

A mode that indicates that your app is recording a movie.

```
static let videoRecording: AVAudioSession.Mode
```

## Discussion

This mode is valid only with the [`record`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/record) and [`playAndRecord`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playAndRecord) audio session categories. On devices with more than one built-in microphone, the audio session uses the microphone closest to the video camera.

Use this mode to ensure that the system provides appropriate audio-signal processing.

Use <doc://com.apple.documentation/documentation/AVFoundation/AVCaptureSession> in conjunction with the video recording mode for greater control of input and output routes. For example, setting the <doc://com.apple.documentation/documentation/AVFoundation/AVCaptureSession/automaticallyConfiguresApplicationAudioSession> property results in the session automatically choosing the best input route for the device and camera used.

---

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)