-
Notifications
You must be signed in to change notification settings - Fork 978
Videos Privacy Options Active, Inactive , Unlisted & UserGroup
-
Active Videos
Active videos are accessible to anyone. -
Inactive Videos
Inactive videos completely disable the video page. These videos are not visible to users and cannot be accessed. -
Unlisted Videos
Unlisted videos function similarly to the unlisted option on YouTube. Anyone with the link can watch the video.
3.1 How to Protect Unlisted Videos?
Set a password to protect the video. -
Hiding Videos from Front Pages
To hide videos from the front pages and all pages, configure the Gallery Plugin. This action hides videos marked as UserGroup, Private, or Unlisted and excludes them from the sitemap.-
Gallery Plugin Configuration:
-
CustomizeAdvanced Plugin Configuration:
-
-
UserGroup Restriction
Videos restricted to specific UserGroups require the user to be logged in and belong to the appropriate UserGroup. If a user does not belong to the required group, they cannot watch the video, even if they have the link.For more information on creating non-public videos and using UserGroups, refer to:
[Create Non-Public Videos and Deal with User Groups](https://github.com/WWBN/AVideo/wiki/Create-non-public-videos-and-deal-with-user-groups) -
Pay-Per-View Options
-
PayPerView for Live Streams:
[PayPerView Live Plugin](https://github.com/WWBN/AVideo/wiki/PayPerView-Live-Plugin) -
PayPerView for Videos:
[PayPerView Plugin](https://github.com/WWBN/AVideo/wiki/PayPerView-Plugin)
-
PayPerView for Live Streams:
You can use the command-line tool to check if a specific user can watch a particular video.
Steps to Run the Script:
- Navigate to the installation directory:
cd /var/www/html/AVideo/install
- Run the
canWatchVideo.php
script:php canWatchVideo.php
Example Output:
root@a613eba988a8:/var/www/html/AVideo/install# php canWatchVideo.php
Enter the User ID: 2
Enter the Video ID: 920
Can User ID 2 watch Video ID 920?
Yes
Reason: User is allowed by plugin to watch the video: No plugins approved or disapprove access for user 2 to video 920
This script evaluates if a user can watch a video and provides a detailed reason for approval or denial. Use it to troubleshoot and validate video access restrictions effectively.