Repository navigation
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.
- 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.
- The browser downloads that copy and keeps it in its own storage.
- 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.
Saved videos expire after a period you choose (default: 7 days). After that, the viewer must save the video again while online.
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.
- Open Admin Panel → Plugins, find VideoOffline and enable it.
- Click Edit parameters.
- In
videoOfflineExpiration, choose how long saved videos stay available. - In
canWatchOffline, choose All Users, Selected user groups or Only Logged Users, and save. - 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.
- Open a video (MP4 or HLS) in a web browser.
- Click Watch Offline under the player. When the video is saved, the button changes to Offline Video.
- Keep the page open until saving finishes. The first time, the server may need some minutes to prepare the offline copy.
- To watch saved videos, open Offline Videos in the left menu or in your profile.
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.phpReplace /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.
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.
Start
Install and update
- Install on Ubuntu 24.04 or 26.04
- Installation Setup Page
- Scheduler cron job (required)
- Set up email
- Use HTTPS
- Own Encoder
- Docker
- Update AVideo
- Backup
- Secure file permissions
- Server command-line tools
- Hidden configuration options
Videos
- Upload a video
- Upload methods — visual guide
- Local Encoder (on your computer)
- Bulk upload from a server folder
- Import a channel
- Publish on YouTube and social media
- Access and payments — visual guide
- Privacy options
- Only for logged-in users
- Resolutions by user group
- Mandatory playback access rules
- Storage options
- Move and protect video files
- Video does not play
Users
Live
- Make a live stream
- Stream with OBS
- Own live server
- One live server, many sites
- Live server install errors
- Live does not play
Plugins
Problems
Other
- Translate your site
- Write a plugin (developers)
- Technical reference (developers and advanced administrators)
Old and retired guides