Protect course videos on WordPress and WooCommerce

For sellers2 min read

Two ways to sell video courses securely on a WordPress site or WooCommerce store with XAPlayer: a license per buyer, or the secure player inside your lesson pages.

All guides

If you sell courses on a WordPress site or a WooCommerce store, there are two ways to lock your videos with XAPlayer. Neither needs changes to your theme.

Option one: a license for each buyer#

The simplest way, with no code at all. Your videos live in XAPlayer and buyers watch in the browser with their license code.

  1. Upload your videos in the XAPlayer panel and arrange them into a course.
  2. After each WooCommerce order, issue the buyer a license from the Licenses page. For many buyers, paste the whole list at once.
  3. Send the buyer their license code and the watch page address, or add them to their order page.

Option two: the secure player inside your lesson pages#

If students have accounts on your site, put the player straight into your lesson pages. Signed-in students watch without a license code, with their own name on the picture.

  1. In the panel’s Settings, add your site’s domain to the allowed domains and create an API key.
  2. Your developer has the lesson template request a short-lived token from XAPlayer for the signed-in user. The complete, ready-to-paste code is in the WordPress and WooCommerce guides.
  3. The player appears inside the page and only plays on your own domains.

Which option suits you?#

  • No developer, or just getting started? Choose option one.
  • Students already sign in to your site and you want everything to stay there? Option two gives them a smoother experience.
  • You can use both: one course with licenses and another inside your site.

Try XAPlayer free for 14 days, with 10 licenses on us.

Try it free with your own course