-
Notifications
You must be signed in to change notification settings - Fork 973
VideoOffline Plugin
The VideoOffline Plugin allows users to save videos locally for offline viewing in popular web browsers on both PC and mobile devices. This plugin takes into account the storage limits imposed by the browser.
This feature is not available in the mobile app
- Works in major web browsers on PC and mobile devices.
- Allows users to save videos for offline viewing.
- Converts HLS videos to MP4 format and stores them locally.
- Utilizes browser storage for efficient video caching.
The VideoOffline Plugin converts HLS videos into MP4 format and saves the corresponding blob code locally, ensuring compatibility across different browsers and devices.
Please note that the maximum file size limit is determined by the browser. While the specific maximum file size may vary, successful tests have shown the capability to store 2-hour-long videos.
The VideoOffline Plugin provides the option to set an expiration time for offline videos. Users will need to renew the offline availability after the predefined expiration period.
You can configure the VideoOffline Plugin to grant offline privileges only to specific user groups. By selecting certain user groups, such as those with a subscription through the Subscription Plugin, you can provide offline benefits to eligible users.
To speed up the conversion process, you can use the following command before storing the videos offline. Please note that this conversion will consume additional disk space.
To convert your videos to the offline format using the VideoOffline Plugin in a Ubuntu command-line environment, follow these steps:
-
Open a terminal in your Ubuntu system.
-
Navigate to the AVideo plugin directory using the
cd
command. Assuming your AVideo installation directory is/var/www/html/AVideo
, run the following command:cd /var/www/html/AVideo/plugin/VideoOffline
-
Once you are in the
VideoOffline
plugin directory, execute the conversion command using PHP by running the following command:php convertVideo.commandLine.php
This command will initiate the conversion process for all the videos, transforming them into the offline format compatible with the VideoOffline Plugin.
-
Wait for the conversion process to complete. The time taken will depend on the number and size of the videos being converted.
-
After the conversion is finished, the videos will be ready for offline consumption by users through the VideoOffline Plugin.