Back to the blog

SubtitleGenerator editorial

I saved my video on an old iPhone and couldn't find it in Photos

On iOS, a web download lands in the Files app, and only the share sheet's Save Video reaches Photos. What we changed in our browser video editor for an iOS 16.7 iPhone, how we test it, and what is still broken.

Yana Li Updated November 25, 2026

Disclosure: I build SubtitleGenerator, the browser video editor these fixes went into. I used AI to help draft and fact-check this post against our code, tests and release notes; the device readings come from our release records of November 3, 2026.

TL;DR: On my iPhone (iOS 16.7, Safari 16.6), our app had three problems in a row. Uploads stalled at a local speech check because Safari 16 has no WebCodecs AudioDecoder. Exports failed partway through. And when I finally got a finished video onto the phone and tapped Save to phone, I could not find it in Photos. A web download on iOS goes to the Files app; only the share sheet's Save Video reaches Photos. We shipped fixes for the first and third. The export failure is still open.

The symptom

SubtitleGenerator runs in the browser: you pick a video, it checks the audio for speech, transcribes it, lets you fix the words and pick a caption style, then burns the captions into a new MP4 with WebCodecs.

Most of my phone testing had been on Android. On November 3 I ran the flow on my own iPhone: iOS 16.7.16, Safari 16.6.2. To check delivery to the phone on its own, we exported a finished video on a computer and used our "Send to phone" page, which gives the phone a download link for the finished file.

On the phone, the page offered two buttons: Save to phone and Share to an app. We had used the same pair in the editor for touch devices since October 26. I tapped Save to phone. The button changed to Save again, and a status line said Download started. Check your Downloads or Files app. I opened Photos. The video was not there.

Nothing had failed. Save to phone triggers a normal download: it creates a Blob URL and clicks an <a download> link. On iOS, downloaded files go to the Files app, in a Downloads folder. The page even said so. But the button said "Save to phone", and on a phone, a saved video is something you look for in Photos.

The way into Photos already existed. On iOS, the system share sheet for a video file includes Save Video, and I confirmed that option is there on this phone. But it sat behind a button called "Share to an app", which nobody would tap to save a video.

The save fix: lead with the share sheet, and do not overclaim

On iPhone and iPad, in touch browsers that can share files (in-app browsers excluded), the export panel and the phone transfer page now show:

  • a primary Save to Photos button, with the hint In the next menu, tap Save Video.
  • a secondary Download file button for people who want the file in Files.

Android and desktop keep the old buttons. The share sheet on the Xiaomi phone we tested has no save option, so there a download is the right default.

This is how the page decides (simplified from our code):

type PhoneSaveMode = 'photos' | 'files' | 'standard';

function isIosDevice(): boolean {
  return (
    /iPhone|iPad|iPod/.test(navigator.userAgent) ||
    // iPadOS reports a Mac user agent by default; real Macs have no touch points.
    (/Macintosh/.test(navigator.userAgent) && navigator.maxTouchPoints > 1)
  );
}

function isTouchDevice(): boolean {
  return window.matchMedia?.('(pointer: coarse)').matches === true;
}

function phoneSaveMode(file: File): PhoneSaveMode {
  if (!isIosDevice() || !isTouchDevice()) return 'standard';
  // In-app browsers (WeChat and similar) may not save at all; they get an honest notice instead.
  if (isInAppBrowser(navigator.userAgent)) return 'standard';
  return canShareFile(file) ? 'photos' : 'files';
}

function canShareFile(file: File): boolean {
  if (typeof navigator.share !== 'function') return false;
  try {
    return navigator.canShare?.({ files: [file] }) === true;
  } catch {
    return false;
  }
}

isInAppBrowser is our user-agent check for in-app browsers; it is omitted here. In 'files' mode, where the browser cannot share files, the page says up front that the video will go to Files, in Downloads, and how to move it to Photos from there.

The share call has to run inside the tap handler, because the share sheet needs a user gesture. The export result is a temporary file, so we rename it first:

async function shareFile(blob: Blob, fileName: string) {
  const file = new File([blob], fileName, { type: blob.type });
  if (!isTouchDevice() || !canShareFile(file)) return 'unavailable';
  try {
    await navigator.share({ files: [file], title: fileName });
    return 'shared';
  } catch (error) {
    if (error instanceof DOMException && error.name === 'AbortError') {
      return 'cancelled';
    }
    return 'unavailable';
  }
}

What we say afterwards mattered as much as the button. When the share promise resolves, the page only knows the menu closed. It does not know whether the user tapped Save Video, AirDrop or Mail. So the message is:

If you tapped Save Video, it’s in your Photos app under Recents.

and the button becomes Save to Photos again. If the menu is dismissed, the page says Nothing was saved. Your video is still ready. A unit test checks that the phrase "saved to Photos" never appears after the menu closes.

The download path got the same treatment. After Download file, Safari users see these two lines, with a small picture of the address bar between them:

Tap the download arrow in Safari’s address bar.

Or open the Files app, then Downloads.

Other iOS browsers see only Open the Files app, then Downloads.

Later the same day we also took iOS in-app browsers out of this flow. A save there may not leave a file at all; we saw that in WeChat on Android. They get an honest notice instead of Photos or Files instructions.

Before saving: uploads stalled on old Safari

Before I could test saving, the same iPhone could not get past the upload. Right after picking a video it showed This browser could not prepare the audio.

Before transcribing, the app runs a local speech check. It decodes the audio, measures loudness frame by frame, and stops clearly silent videos before we pay for transcription. It also draws the waveform. The decoding used WebCodecs AudioDecoder, which Safari before 26 and Firefox before 130 do not have.

Extracting the AAC audio still worked, because that step copies the stream without decoding it. But the speech check asked mediabunny, our media library, whether the track could be decoded. canDecode() returned false, and the check threw. Everything after upload was blocked.

This was not only my phone. Our production events showed an iOS 18.7 user on November 1 retrying 17 times within 30 seconds.

The fix decodes through Web Audio when AudioDecoder is missing (again simplified):

// decodeAudioData decodes the whole file into memory and cannot be interrupted.
// On an old phone that can kill the tab, so long audio skips the check instead.
const MAX_DECODE_SECONDS = 600;
const FRAME_SECONDS = 1024 / 48_000; // same length as a 48 kHz AAC frame, about 21 ms

async function frameRmsWithWebAudio(blob: Blob, durationSeconds: number) {
  if (durationSeconds > MAX_DECODE_SECONDS) throw new SpeechCheckUnavailable();
  let audio: AudioBuffer;
  try {
    const context = new OfflineAudioContext(1, 1, 16_000);
    audio = await context.decodeAudioData(await blob.arrayBuffer());
  } catch {
    throw new SpeechCheckUnavailable();
  }
  const frameLength = Math.max(1, Math.round(audio.sampleRate * FRAME_SECONDS));
  const channels = Array.from({ length: audio.numberOfChannels }, (_, i) =>
    audio.getChannelData(i)
  );
  const rms: number[] = [];
  for (let start = 0; start < audio.length; start += frameLength) {
    const end = Math.min(start + frameLength, audio.length);
    let sum = 0;
    for (const samples of channels) {
      for (let i = start; i < end; i += 1) sum += samples[i] * samples[i];
    }
    rms.push(Math.min(1, Math.sqrt(sum / ((end - start) * channels.length))));
  }
  return rms;
}

SpeechCheckUnavailable is a small error class of our own. The one-sample OfflineAudioContext is never rendered; we only use it for decodeAudioData, which resamples to the context's 16 kHz rate.

The frame length matches the native path on purpose. Our silence threshold is -30 dBFS, and it should mean the same thing on both decoding routes.

When the Web Audio route is needed and decoding fails, or the audio is longer than 10 minutes, the app skips the local check instead of failing. It does not invent a result. It records the loudness as unknown and the browser voice detection as unavailable or not run (depending on whether it was enabled), marks the waveform Waveform not available in this browser, and lets transcription start. Silent videos are still stopped by the server's speech check before any charge.

We tested it in Chromium by deleting AudioDecoder, AudioEncoder and AudioData from globalThis in an init script. One test then also deletes OfflineAudioContext to cover the skip path. A parity test runs the check on the same sample clip with and without the native decoder, and requires the loudest-decile reading to differ by less than 3 dB.

After release, on the same iPhone, the speech check passed in about four seconds, and a real transcription, a text edit and a caption style change all worked.

The part we did not fix: export on iOS 16.7

Export on that phone got two compatibility fixes, then hit a wall.

The first fix was storage. We write the export to the Origin Private File System from a worker. On Safari 16.6, a worker started from inside another worker got InvalidStateError from getDirectory(), and the file handle could not be passed between workers. The export now falls back to opening the sync access handle in the export worker itself.

The second was audio. AAC often starts with a slightly negative timestamp, such as -0.021 seconds, because of encoder delay. Trimming from 0 makes mediabunny re-encode the audio, which a browser without an audio decoder cannot do. The track was dropped and our output check failed. Now, when the audio cannot be decoded and its first timestamp is negative, we move the trim start back to that timestamp so the audio is copied as is, and shift the caption timing to match.

Then export failed for good. Creating a VideoFrame from our canvas throws Buffer has no frame, on the 10th frame, every run. At that point about 90 decoded frames were queued. In isolation, decoding, holding 60 frames and encoding 90 frames all worked on the same phone. I stopped digging and shipped the other fixes.

What changed is how the app reports it. That error used to show Try again, which could never work. It now counts as an unsupported browser: the editor says the project is safe and points to current desktop Chrome or Edge, with no retry button. On the live site, the iPhone reached that message within three seconds of starting an export.

How we test the save flow

Playwright cannot open the iOS share sheet, so the tests check our side of the contract:

  • End to end, iPhone emulation. A Playwright test sets an iOS 18.7 Safari user agent, touch input and a 390×844 viewport, and stubs navigator.canShare to return true. The stubbed navigator.share throws AbortError on the first call and resolves on the second. The test exports a one-second clip and checks, in order: Save to Photos is visible, the Save Video hint is shown, Save to phone and Share to an app are gone, the first tap shows Nothing was saved, the second shows the If you tapped Save Video message, and Download file fires a real download followed by the Safari and Files steps.
  • Phone transfer. The existing end-to-end test for sending a video from computer to phone now opens the same download link as an iPhone and checks for Save to Photos and the hint.
  • Unit tests. They cover touch detection versus share support as separate checks, the rename before sharing, AbortError as a cancel, button order, the no-overclaim message and the Files explanation for browsers that cannot share files.

On the real iPhone, after release, the phone transfer page showed Save to Photos and Download file.

Where this leaves an old iPhone

On an iOS 16.7 iPhone today, you can upload, transcribe, fix the words and pick a style in the browser. To get the finished video, export it on a computer, send it to the phone with the transfer page, and tap Save to Photos, then Save Video.

On Android the buttons did not change. For a different Android problem we fixed in the same export path, see why our MP4 exports showed as 0 seconds long on Android.

The lesson

"The download started" and "the user has the video" are different events, and a web page can only see the first. On iOS the gap is a whole app: Files instead of Photos. The best a page can do is open the right system menu, say which option to tap, and then describe what happened without claiming more than it knows.

If you ship a web app that hands people a video on iPhone, try saving one yourself and see where you go looking for it. Did you find another way to get a file from a web page into Photos?

Frequently asked questions

I saved a video from SubtitleGenerator on my iPhone. Why is it not in Photos?

In Safari and other regular iPhone browsers, Download file (and Save to phone before November 3, 2026) is a download, not a save to Photos. Look in the Files app, usually under Downloads, then open the video, tap Share and tap Save Video. Save to Photos opens the system menu instead; tap Save Video there. In-app browsers, such as the one inside a chat app, may not save the file at all, so open the page in Safari.

Can a web page save a video straight into the iPhone Photos app?

Not with a plain download. In our testing on iOS, a download goes to the Files app. A page can hand the file to the system share sheet with the Web Share API, and the user then taps Save Video. The page is not told which option the user picked.

Can I export a subtitled video on an iPhone with iOS 16?

Not in our tests. On the iOS 16.7 iPhone we test with, the in-browser export fails at the same video frame every time, so the editor shows a message pointing to desktop Chrome or Edge instead of a retry button. You can export on a computer and send the finished video to your phone.

Put the workflow on a video

Inspect a local file or open the built-in sample to preview caption styles and export formats. Your video stays on your device.

Upload your video