# DRM-X 4.0 Video Protection -- WordPress Plugin (LearnDash) -- (drmx-integration-learndash) This is a WordPress Video Protection plugin. It comes from [Haihaisoft DRM-X 4.0 digital copyright protection](https://www.drm-x.com) platform. DRM-X 4.0 supports [encrypted video](https://www.haihaisoft.com/Video-DRM-Protection.aspx), audio and PDF. DRM-X 4.0 protected courses can [prevent screen recording](https://www.haihaisoft.com/Smart-Prevent-Screen-Recording.aspx), display user information [watermark](https://www.drm-x.com/Secure-Architecture-4.0.aspx#watermark-scroll-tab), and bind user devices to [prevent sharing accounts](https://www.drm-x.com/Secure-Architecture-4.0.aspx#binding-scroll-tab). Through this plugin, you can easily integrate DRM-X 4.0 system with your LearnDash LMS system seamlessly. **[Download DRM-X 4.0 LearnDash Integration Plugin](https://www.drm-x.com/download/DRM-X_4.0_Integration/drmx-integration-learndash.zip)** # File Description ### DRM-X 4.0 Integration Core Files - **drmx_index.php** DRM-X 4.0 integrated index file, it will get DRM-X 4.0 encryption parameters. - **drmx_login.php** Verify user login information and course orders, call DRM-X 4.0 integration interface to add users, update Rights, and get licenses. - **drmx_licError.php** Show the error encountered when obtaining a license. - **licstore.php** Storage of acquired licenses. - **public/css/login-style.css** DRM-X 4.0 Integration Style files for pages. - **public/images/** DRM-X 4.0 Integration Get license page image folder. ### Plug-in core files - **drmx-integration-learndash.php** Plug-in registration file. - **drmx-integration-learndash-settings.php** Plug-in settings page. # How to use the plugin? ## 1. Set DRM-X 4.0 parameters in the plugin ### 1. Install and activate the plugin ### 2. Visit the plugin settings page ### 3. Set the DRM-X 4.0 parameters #### DRM-X 4.0 parameter description: - **DRM-X 4.0 Account:** The email address you entered when you registered your DRM-X 4.0 account. - **DRM-X 4.0 Web Service Authentication String:** Visit the [DRM-X 4.0 website integration settings](http://4.drm-x.com/SetIntegration.aspx), Select custom login page integration and set a Web Service Authentication String for DRM-X web service. Then enter the same Authentication String in the drmx-integration-learndash plugin settings page. - **DRM-X 4.0 XML Web Service URL:** DRM-X 4.0 system XML Web Service interface URL. - **DRM-X 4.0 GroupID:** The User Group ID of your DRM-X 4.0 account, please login to your DRM-X 4.0 account and visit the User Group page to check it. You only need to create one user group, please do not delete the user group in your DRM-X 4.0 account after setting. - **DRM-X 4.0 RightsID:** The Rights ID of your DRM-X 4.0 account, please login to your DRM-X 4.0 account and visit the Rights page to check it. You only need to create one Rights, please do not delete the rights in your DRM-X 4.0 account after setting, users will automatically update the Rights when they get the license, and get the updated Rights. - **User Bind Count:** Hardware binding restrictions for student login accounts. The user binding count is only valid for users who have not yet acquired a license. If you want to modify the user who has already acquired the license, please login your DRM-X 4.0 account, edit the user, reset the user binding count. ## 2. Associate LearnDash courses with DRM-X 4.0 License Profile ### 1. Create or edit LearnDash courses Get the course ID through the URL "**post**" parameter in the browser address bar, the value of the "**post**" is the course ID. ### 2. Create the corresponding DRM-X 4.0 License Profile for the course Login to your DRM-X 4.0 account, visit the License Profile page, and create a License Profile that belongs to the course. - **Profile Nam:** We recommend that the License Profile name be the same as the course name. - **Default Rights:** Select any one of the Rights. - **ProductID in your system(Option):** Set the ID of the corresponding course here, which is the post id viewed in the first step. Finally, select License is Revocable below and click the Submit button. ### 3. Protect Course Videos Visit the DRM-X 4.0 Protect Files page, select the License Profile (course) of the video you want to protect, and complete the protection. [**How to protect videos and PDF files?**](https://www.drm-x.com/DRM-X4.0_encryption_tutorial.aspx) ### 4. Upload the protected video You can upload the protected video to your Wordpress web server, or to a separate video storage server. But it must have an absolute URL to be embedded in Xvast online player. For example: https://www.domainname.com/videos/xxxxx_P.mp4 ### 5. Embed the protected video Embed the protected video into the LearnDash course. Create or edit a Lesson for a LearnDash course. Embed the encrypted video using the following shortcode. [xvast-player] https://www.domainname.com/videos/xxxxx_P.mp4 [/xvast-player] ## 3. Set the URL of DRM-X 4.0 obtain license Visit DRM-X 4.0 "**Account Settings**" - "**Site Integration Preferences**" - select "**Custom Login Page Integration**" Set the **License URL**: The URL starts with the domain name of your WordPress site, for example: https://www.domain.com/wp-content/plugins/drmx-integration-learndash/drmx_index.php You can also check the DRM-X 4.0 with LearnDash plugin page for a line of blue URL, which is the address of your website to get the license. **If you have any questions about the integration, you can feel free to contact us.** [Haihaisoft (DRM Provider) official website](https://www.haihaisoft.com): [https://www.haihaisoft.com](https://www.haihaisoft.com) [DRM-X Digital Rights Management Platform](https://www.drm-x.com): [https://www.drm-x.com](https://www.drm-x.com) [DRM-X Free Trial](https://www.drm-x.com/Fees-Compare-4.0.aspx): [https://www.drm-x.com/Fees-Compare-4.0.aspx](https://www.drm-x.com/Fees-Compare-4.0.aspx)