AVError.Code.deviceIsNotAvailableInBackground
You attempted to start a capture session in the background, which isn’t allowed in iOS.
Declaration
case deviceIsNotAvailableInBackgroundSee Also
Error codes
AVError.Code.airPlayControllerRequiresInternetAVError.Code.airPlayReceiverRequiresInternetAVError.Code.airPlayReceiverTemporarilyUnavailableAVError.Code.applicationIsNotAuthorizedAVError.Code.applicationIsNotAuthorizedToUseDeviceAVError.Code.autoWhiteBalanceNotLockedAVError.Code.compositionTrackSegmentsNotContiguousAVError.Code.contentIsNotAuthorizedAVError.Code.contentIsProtectedAVError.Code.contentIsUnavailableAVError.Code.contentKeyRequestCancelledAVError.Code.contentNotUpdatedAVError.Code.createContentKeyRequestFailedAVError.Code.decodeFailedAVError.Code.decoderNotFound