Skip to content

Videos Privacy Options Active, Inactive , Unlisted & UserGroup

Daniel Neto edited this page Jan 8, 2025 · 2 revisions
  1. Active Videos
    Active videos are accessible to anyone.

  2. Inactive Videos
    Inactive videos completely disable the video page. These videos are not visible to users and cannot be accessed.

  3. 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.

    Unlisted Password

  4. 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:
      Gallery Plugin

    • CustomizeAdvanced Plugin Configuration:
      CustomizeAdvanced Plugin

  5. 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)

  6. Pay-Per-View Options


Using the Command-Line Tool to Check Video Access

You can use the command-line tool to check if a specific user can watch a particular video.

Steps to Run the Script:

  1. Navigate to the installation directory:
    cd /var/www/html/AVideo/install
  2. 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.

Clone this wiki locally