Back to the blog

Read a website with audio and video offline on iPhone and iPad

Some sites are as much listened to and watched as read: a course exported with its video lessons, a podcast archive, a discography with a player for every track, the albums and music videos a studio delivers to its client on a USB stick, a club's site with videos of its shows. You have the folder at hand, with its index.html and its MP3 and MP4 files. On a computer, a double-click is enough. On an iPhone or an iPad, it is another story.

Here is how to read it with Pagira, offline, and what to know so that every audio and video player on the page works.

Why Files is not enough

The Files app can show an HTML page, but on its own: without its style sheet, without its scripts, and above all without the files next to it. The page's <audio> and <video> tags point to files in the folder, and those files stay out of reach. You see the page, but no player starts.

Pagira opens the whole folder. The page is served as a real site would be, from the device itself: each player finds its file, the playback bar lets you skip forward or back, and the page's scripts work as they do on a computer. How this works is explained in read a local site without setting up a web server.

The formats iPhone and iPad play

Pagira plays what Safari plays. In practice:

AVI, WMV, FLV and MKV are not played by iOS, in Pagira or in Safari. If your site has some, convert them once to MP4 (H.264 and AAC) on the computer, with HandBrake for instance, and keep the same file name or fix the link in the page.

Large videos

A video of several gigabytes is not a problem. Pagira never loads it whole into memory: it sends the player the piece it asks for, when it asks for it. A two-hour video starts straight away, and jumping to the end only reads the end.

A page with dozens of players

A discography with a player per track, or a course page with all its videos, can hold dozens of players. A browser normally prepares every one of them as soon as the page opens. On iPhone, past a few hundred, iOS can no longer cope and the page never finishes opening. With Pagira, it opens at once, on iPhone as on iPad, and stays smooth from one play to the next.

Truly offline

Wherever the folder is, Pagira reads it where it stands, without importing it: On My iPhone or On My iPad, a USB stick or drive plugged in, or iCloud Drive.

In iCloud Drive, Pagira fetches each file when the page asks for it: handy so as not to fill the device, but a video never played before needs a connection. Before a trip, tap Download: the whole folder is kept on the device, videos included, and plays on a plane. An interrupted download resumes by itself.

Preparing the folder

A few precautions avoid a silent player:

In practice

  1. Copy the site's folder, with its subfolders, into Files: On My iPhone, iCloud Drive, or leave it on a USB stick.
  2. Install Pagira from the App Store (iPhone and iPad, iOS 17 or later).
  3. Tap Open a folder or file and pick the site's folder.
  4. The site's home page opens: tap a player to listen or watch.

Frequently asked questions

Does Pagira play the MP3 and MP4 files of an HTML site offline?

Yes. Pagira opens the site's folder on iPhone and iPad, and the page's audio and video players play the folder's MP3, M4A, WAV, MP4 and MOV files with no connection.

Which video formats work on iPhone and iPad?

MP4 and MOV in H.264 or HEVC, with AAC sound. AVI, WMV, FLV and MKV are not played by iOS: convert them to MP4 on the computer.

Can a video of several gigabytes be played?

Yes. Pagira never loads the whole video into memory: it starts straight away, and you can skip forward or back freely.

Is a connection needed for a site kept in iCloud Drive?

For a file never downloaded before, yes. Tap Download before leaving: the whole folder, videos included, stays on the device and plays offline.

Does Pagira read a site on a USB stick?

Yes, on iPhone and iPad, without copying it: pick the folder on the stick in Open a folder or file.

Download on the App Store

More from the blog