Skip to content

VideoOffline Plugin

Daniel Neto edited this page Oct 7, 2026 · 4 revisions

VideoOffline plugin

VideoOffline lets viewers save videos inside their web browser and watch them later without an internet connection.

VideoOffline is a paid add-on available from the AVideo plugin marketplace.

This feature is not available in the AVideo mobile app. It works in web browsers on computers and phones.

How it Works

  1. When a viewer clicks Watch Offline, your server creates an offline MP4 copy of the video (from the MP4 or HLS version) with FFmpeg, if it does not exist yet.
  2. The browser downloads that copy and keeps it in its own storage.
  3. The viewer opens saved videos from Offline Videos.

The video stays inside the browser; it is not saved as a normal file in the viewer's Downloads folder. The browser decides how much space a site can use; tests have stored 2-hour videos. Browsers and phones can delete stored data when space is low, so offline storage is not a permanent backup.

Expiration Time

Saved videos expire after a period you choose (default: 7 days). After that, the viewer must save the video again while online.

Usergroup Privileges

You can choose who may save videos offline: everyone, only logged-in users, or only selected user groups. For example, give the permission only to the group your paying subscribers get from the Subscription plugin.

Use it in the interface

Administrator

  1. Open Admin Panel → Plugins, find VideoOffline and enable it.
  2. Click Edit parameters.
  3. In videoOfflineExpiration, choose how long saved videos stay available.
  4. In canWatchOffline, choose All Users, Selected user groups or Only Logged Users, and save.
  5. If you chose Selected user groups: open Admin Panel → Contents → Users Groups, edit each group that should have it, and turn on the Video Offline permission.

This plugin does not depend on the site's download setting (Enable Video Download); it has its own rules above. Viewers can only save videos they are allowed to watch.

Viewer

  1. Open a video (MP4 or HLS) in a web browser.
  2. Click Watch Offline under the player. When the video is saved, the button changes to Offline Video.
  3. Keep the page open until saving finishes. The first time, the server may need some minutes to prepare the offline copy.
  4. To watch saved videos, open Offline Videos in the left menu or in your profile.

Pre-Convert All Your Videos

Advanced (server access needed). To avoid the wait on the first save, you can create the offline copies of all videos in advance. Each copy uses extra disk space, and the process can take a long time.

Open a terminal on the server (SSH) and run:

sudo -u www-data php /var/www/html/AVideo/plugin/VideoOffline/convertVideo.commandLine.php

Replace /var/www/html/AVideo if your site is installed in another folder. The command goes through every video and converts the ones that do not have an offline copy yet. It shows progress while it runs.

Common questions

Why is the Watch Offline button missing? The plugin is disabled, the viewer is not allowed by canWatchOffline (or their group lacks the Video Offline permission), the video has no MP4 or HLS version, or the page is open in the AVideo mobile app.

Why did the browser remove a saved video? The video expired, the browser data was cleared, or the device ran low on space.

Does offline access bypass payment rules? Viewers can only save videos they are allowed to watch. A saved video keeps playing in that browser until it expires, even offline, so choose the expiration with your payment rules in mind.

Clone this wiki locally