HTML sites, site builders, or no server
If your site has no server (plain HTML or a site builder), sell with license codes and send students to XAPlayer’s watch page. No code needed.
All guides
Start
Quick start: your first protected course in 10 minutesVideo security: encryption, watermarks and what no player can doAdd to your site
Embed the secure player in WordPressSell video courses with WooCommerce and the secure playerThe XAPlayer secure player in MoodleThe XAPlayer secure player in LaravelThe XAPlayer secure player with Node.js and ExpressThe XAPlayer secure player in Next.jsThe XAPlayer secure player with Python: Django and FlaskHTML sites, site builders, or no serverFor sellers
Uploading videos and automatic protectionIssuing licenses, device limits and bulk issuingHow to stop IDM and downloaders from saving your course videosProtect course videos on WordPress and WooCommerceFor students
For students: watching a course with a license codePlatforms: Android, iPhone, Windows, Mac and LinuxWatching a course on AndroidWatching a course on iPhone and iPadWatching a course on Windows, Mac and LinuxFor developers
API reference: embed the secure player on any siteTo put the player inside your page, your site needs a server that keeps the API key secret; a key written into a page’s HTML or JavaScript is visible to everyone. If your site has no server, this is simpler and just as secure:
The no-code way: license codes#
- Create the course in XAPlayer.
- After each sale, issue the buyer a license in the panel (one at a time, or many from a spreadsheet).
- Send the buyer their license code. They enter it at en.xaplayer.ir/play and the course opens with their name on the picture.
- Add a button on your site that links to the watch page, so students can find it.
<!-- Anywhere on your site: a button to the student page -->
<a href="https://en.xaplayer.ir/play" style="display:inline-block;padding:12px 22px;border-radius:999px;background:#017b6a;color:#fff;text-decoration:none">
Watch the course
</a>
If you want the player inside your page#
A small serverless function is enough, and most hosts have one (Vercel, Netlify, Cloudflare, or any PHP host). Run the code from the Node.js or WordPress guide there and put the player address in an iframe.
Try XAPlayer free for 14 days, with 10 licenses on us.
Try it free with your own course