How to Use xPola Embed Generator

Learn how to generate encrypted streaming links, customize your web player, and embed xPola Player seamlessly into your websites and applications.

Overview

The xPola Embed Generator is a powerful tool designed to securely encrypt video URLs, M3U playlists, and custom stream configurations so they can only be played securely within the xPola ecosystem. It prevents unauthorized scraping and hotlinking of your streams while providing a customizable web interface.

1. Adding & Editing Links

You can add multiple servers or qualities for a single video. For each link:

  • Title: A label for the user to choose (e.g., "1080p", "Server 1").
  • URL: The direct stream link (MP4, M3U8, MKV, etc.).
  • Play In: Choose the player engine (EXO, WEB, BROWSER, IFRAME, WEB2EXO, EXT, JSON, M3U). EXO is recommended for native Android playback.

2. Advanced Stream Settings

  • Headers: Add custom HTTP headers required by your stream (e.g., Referer, User-Agent). Enter them in key:value format.
  • DRM License: If your stream is DRM protected (Widevine, Clearkey), paste the license URL or keys here.
  • App Security Flags: Restrict playback to specific environments, such as blocking VPNs, emulators, or rooted devices.

3. Global App Settings

Customize the appearance of the web player page that your users will see before the video launches:

  • App Logo & Video Intro: Add your branding and a custom pre-roll video URL.
  • Logo Position & Size: Place your watermark appropriately.
  • Web Player BG Image: A poster image to display on the web page.
  • On-click URL (Ad/Link): A destination URL if the user taps the player.
  • Download Prompt: Force users to download the xPola app with an automatic prompt (in English or Arabic).

4. Generating & Embedding the Code

Once you have configured all settings, you can optionally set an Encryption Password (allowing you to decrypt and edit the link later). Click Generate to receive your code.

Copy HTML Page: Provides a complete, ready-to-host HTML file with your background, tracking, and a "Play" button that launches the xPola Player app natively.

Copy Intent Action: A raw Android Intent URI (intent://...) that you can embed in any Android app or WebView to instantly deep-link to the xPola Player.

Usage Example: Place the HTML code on any website. When a mobile user clicks the play button, the encrypted data is passed securely to the installed xPola Player, bypassing typical browser limitations.