Skip to content

Making Content Available Only for Logged Users in AVideo

Daniel Neto edited this page Feb 1, 2024 · 4 revisions

AVideo platform allows you to restrict access to videos and live streams by leveraging user groups. This guide will walk you through the process of creating non-public videos and managing user access through user groups.

Step 1: Understanding User Groups

User groups in AVideo control access to videos and live streams. To make content available only to logged users or specific groups of users, you first need to create and manage these groups.

Creating and Adding Content to User Groups

  1. Create a User Group: Begin by creating a user group. This group will be the basis for restricting access to your content. For detailed instructions, visit the Create non-public videos and deal with user groups guide on the AVideo wiki.

  2. Add Videos or Live Streams to User Groups: Once you have a user group, you can add individual videos or live streams to it. This step ensures that only members of the group can access the content.

Step 2: Automating Video Association with User Groups

To streamline the process of associating new videos with a specific user group, you can use the PredefinedCategory Plugin.

  • PredefinedCategory Plugin: This plugin allows you to automatically add all new videos to a predetermined user group. For setup instructions, refer to the PredefinedCategory Plugin documentation.

Step 3: Adding Users to User Groups

To view videos restricted to a user group, a user must be a member of that group.

  • Manually Adding Users: You can manually add users to a user group through the AVideo platform's user management area.
  • Automatically Adding New Users: If you wish to automatically add new sign-ups to a specific user group, adjust the settings in the CustomizeUser plugin. This ensures that all new users immediately gain access to the group-restricted content.

Step 4: Bulk Operations for Existing Content and Users

If you have a large number of existing videos or users that you need to add to a user group, AVideo provides command-line tools to facilitate this:

  • Add All Users to a User Group: Use the command php /var/www/html/AVideo/install/addAllUsersIntoUserGroup.php to add all existing users to a specific user group. During execution, you will be prompted to select the user group.

  • Add All Videos to a User Group: Similarly, to add all existing videos to a user group, use the command php /var/www/html/AVideo/install/addAllVideosIntoUserGroup.php. You will be asked to choose the target user group during the process.

These tools are particularly useful for efficiently managing access to a large library of content and a growing user base.

Conclusion

By following these steps, you can effectively manage who has access to your content on the AVideo platform, ensuring that videos and live streams are available only to specific users or groups. This approach enhances the privacy and exclusivity of your content, making it accessible only to your intended audience.

Clone this wiki locally