HTML sites, site builders, or no server

Add to your site2 min read

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

To 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#

  1. Create the course in XAPlayer.
  2. After each sale, issue the buyer a license in the panel (one at a time, or many from a spreadsheet).
  3. Send the buyer their license code. They enter it at en.xaplayer.ir/play and the course opens with their name on the picture.
  4. Add a button on your site that links to the watch page, so students can find it.
index.html
<!-- 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