Unable to watch videos in IOS app through WebDav

I am attempting to watch a video on my nextcloud IOS app and whenever I try to watch the video I get an error (shown in the photo).

Troubleshooting Steps Attempted

  1. Enabled Direct Link API

    • Set dav.direct.enabled: true in Nextcloud config

    • Restarted web server

  2. Fixed Encrypted Files Issue

    • Discovered files were still encrypted from previous encryption setup

    • Re-enabled encryption temporarily

    • Ran encryption:decrypt-all to decrypt all files

    • Disabled encryption again

    • Rescanned files with files:scan

  3. Fixed Database File Paths

    • Deleted old encrypted file cache entries from database

    • Rescanned all files to update paths from files_encryption/keys/... to files/.Private/...

    • Verified file paths corrected in database

  4. Tested Direct Link API

    • Confirmed API returns HTTP 200 with valid URLs

    • Verified direct links work when accessed via curl

    • Token expiration set to 8 hours (default)

  5. Nginx Proxy Manager Configuration

    • Removed proxy_set_header Accept-Encoding "";

    • Added proxy_buffering off; for streaming support

    • Removed unnecessary custom location blocks

    • Ensured proper headers forwarded

  6. Apache Configuration

    • Enabled mod_headers

    • Added range request support for video files

    • Restarted Apache

  7. iOS App Troubleshooting

    • Force closed and restarted app

    • Cleared app cache

    • Reinstalled Nextcloud iOS app (version 7.2.3.7)

    • Verified no external VLC app installed