<!--
{
  "availability" : [
    "iOS: 9.0.0 - 27.0.0",
    "iPadOS: 9.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 11.0.0 - 27.0.0",
    "tvOS: 10.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ReplayKit",
  "identifier" : "/documentation/ReplayKit/RPRecordingErrorCode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "ReplayKit"
    ],
    "preciseIdentifier" : "c:@E@RPRecordingErrorCode"
  },
  "title" : "RPRecordingErrorCode"
}
-->

# RPRecordingErrorCode

The ReplayKit error domain codes.

```
enum RPRecordingErrorCode
```

## Topics

### Errors

[`RPRecordingErrorCode.activePhoneCall`](/documentation/ReplayKit/RPRecordingErrorCode/activePhoneCall)

Unable to record due to an active phone call.

[`RPRecordingErrorCode.attemptToStartInRecordingState`](/documentation/ReplayKit/RPRecordingErrorCode/attemptToStartInRecordingState)

Attempted to start a recording that’s already in a recording state.

[`RPRecordingErrorCode.attemptToStopNonRecording`](/documentation/ReplayKit/RPRecordingErrorCode/attemptToStopNonRecording)

Attempted to stop a recording that’s not in a recording state.

[`RPRecordingErrorCode.broadcastInvalidSession`](/documentation/ReplayKit/RPRecordingErrorCode/broadcastInvalidSession)

Attempted to start a broadcast without a prior session.

[`RPRecordingErrorCode.broadcastSetupFailed`](/documentation/ReplayKit/RPRecordingErrorCode/broadcastSetupFailed)

The broadcast set up failed.

[`RPRecordingErrorCode.carPlay`](/documentation/ReplayKit/RPRecordingErrorCode/carPlay)

Failed to start recording because CarPlay is active.

[`RPRecordingErrorCode.codeSuccessful`](/documentation/ReplayKit/RPRecordingErrorCode/codeSuccessful)

Successfully saved the recording to the Camera Roll.

[`RPRecordingErrorCode.contentResize`](/documentation/ReplayKit/RPRecordingErrorCode/contentResize)

Recording interrupted by multitasking and content resizing.

[`RPRecordingErrorCode.disabled`](/documentation/ReplayKit/RPRecordingErrorCode/disabled)

Recording disabled via parental controls.

[`RPRecordingErrorCode.entitlements`](/documentation/ReplayKit/RPRecordingErrorCode/entitlements)

Recording failed due to missing entitlements.

[`RPRecordingErrorCode.failed`](/documentation/ReplayKit/RPRecordingErrorCode/failed)

Recording error occurred.

[`RPRecordingErrorCode.failedApplicationConnectionInterrupted`](/documentation/ReplayKit/RPRecordingErrorCode/failedApplicationConnectionInterrupted)

The recording failed because the app’s connection was interrupted.

[`RPRecordingErrorCode.failedApplicationConnectionInvalid`](/documentation/ReplayKit/RPRecordingErrorCode/failedApplicationConnectionInvalid)

The recording failed because the app’s connection is invalid.

[`RPRecordingErrorCode.failedAssetWriterExportCanceled`](/documentation/ReplayKit/RPRecordingErrorCode/failedAssetWriterExportCanceled)

The recording failed because the user canceled the export.

[`RPRecordingErrorCode.failedAssetWriterExportFailed`](/documentation/ReplayKit/RPRecordingErrorCode/failedAssetWriterExportFailed)

The recording failed due to an error exporting the movie.

[`RPRecordingErrorCode.failedAssetWriterFailedToSave`](/documentation/ReplayKit/RPRecordingErrorCode/failedAssetWriterFailedToSave)

The recording failed due to an asset writer failure.

[`RPRecordingErrorCode.failedAssetWriterInWrongState`](/documentation/ReplayKit/RPRecordingErrorCode/failedAssetWriterInWrongState)

The recording failed because the asset writer is in an invalid state.

[`RPRecordingErrorCode.failedIncorrectTimeStamps`](/documentation/ReplayKit/RPRecordingErrorCode/failedIncorrectTimeStamps)

The recording failed due to malformed start and end time intervals.

[`RPRecordingErrorCode.failedMediaServicesFailure`](/documentation/ReplayKit/RPRecordingErrorCode/failedMediaServicesFailure)

The recording failed due to a mediaservices daemon failure.

[`RPRecordingErrorCode.failedNoAssetWriter`](/documentation/ReplayKit/RPRecordingErrorCode/failedNoAssetWriter)

The recording failed because there is no asset writer available.

[`RPRecordingErrorCode.failedNoMatchingApplicationContext`](/documentation/ReplayKit/RPRecordingErrorCode/failedNoMatchingApplicationContext)

The context identifier doesn’t match the app identifier.

[`RPRecordingErrorCode.failedToObtainURL`](/documentation/ReplayKit/RPRecordingErrorCode/failedToObtainURL)

The recording failed due to a failure to obtain the URL.

[`RPRecordingErrorCode.failedToProcessFirstSample`](/documentation/ReplayKit/RPRecordingErrorCode/failedToProcessFirstSample)

The recording failed because the asset writer failed to process the first media sample.

[`RPRecordingErrorCode.failedToRemoveFile`](/documentation/ReplayKit/RPRecordingErrorCode/failedToRemoveFile)

The recording failed because the temporary file wasn’t removed.

[`RPRecordingErrorCode.failedToStartCaptureStack`](/documentation/ReplayKit/RPRecordingErrorCode/failedToStartCaptureStack)

The system failed to configure the app for A/V recording.

[`RPRecordingErrorCode.failedToStart`](/documentation/ReplayKit/RPRecordingErrorCode/failedToStart)

Recording failed to start.

[`RPRecordingErrorCode.failedToSave`](/documentation/ReplayKit/RPRecordingErrorCode/failedToSave)

The recording failed to save.

[`RPRecordingErrorCode.filePermissions`](/documentation/ReplayKit/RPRecordingErrorCode/filePermissions)

The recording failed due to a file permission error.

[`RPRecordingErrorCode.insufficientStorage`](/documentation/ReplayKit/RPRecordingErrorCode/insufficientStorage)

Not enough storage available on the device.

[`RPRecordingErrorCode.interrupted`](/documentation/ReplayKit/RPRecordingErrorCode/interrupted)

Recording interrupted by another app.

[`RPRecordingErrorCode.invalidParameter`](/documentation/ReplayKit/RPRecordingErrorCode/invalidParameter)

The recording failed because of an invalid parameter.

[`RPRecordingErrorCode.photoFailure`](/documentation/ReplayKit/RPRecordingErrorCode/photoFailure)

Failed saving the video the Camera Roll.

[`RPRecordingErrorCode.recordingInvalidSession`](/documentation/ReplayKit/RPRecordingErrorCode/recordingInvalidSession)

Attempted to start an invalid recording session.

[`RPRecordingErrorCode.systemDormancy`](/documentation/ReplayKit/RPRecordingErrorCode/systemDormancy)

Recording forced to end by the user pressing the power button.

[`RPRecordingErrorCode.unknown`](/documentation/ReplayKit/RPRecordingErrorCode/unknown)

Error cause unknown.

[`RPRecordingErrorCode.userDeclined`](/documentation/ReplayKit/RPRecordingErrorCode/userDeclined)

User declined recording request.

[`RPRecordingErrorCode.videoMixingFailure`](/documentation/ReplayKit/RPRecordingErrorCode/videoMixingFailure)

The recording failed due to an A/V mixing failure.

### Enumeration Cases

[`RPRecordingErrorCode.exportClipToURLInProgress`](/documentation/ReplayKit/RPRecordingErrorCode/exportClipToURLInProgress)



---

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)