• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
VdoCipher: Secure Video Hosting for BusinessVdoCipher
Sign Up
  • Solutions

    Use Case

    • EdTech & ELearning
    • Media & OTT
    • Developers
    • Enterprise
    • Healthcare
    • Sports
    • Finance
    • Anti Piracy
    • Faith

    Features

    • Video DRM
    • Video APIs
    • Video SDKs
    • Custom Video Player
    • Dynamic Watermarking
    • Video Hosting
    • Live Streaming
    • WordPress Plugin
    • Video Subtitles
    • Video Analytics
    • Piracy Identification
  • Pricing
    • Video Hosting with DRM Security
    • Live Streaming without DRM
    • Video Hosting without DRM
  • Features
  • Live Stream
  • Developer
  • About
    • Testimonials
    • The Company
  • Contact
Login
Sign Up

How To Embed VdoCipher Video on Wix

September 1, 2026 /

Featured image showing the wix website on the right side and on the left written 'How to embed video in wix'

Read this step by step guide to embed VdoCipher video in Wix website. If you paste VdoCipher’s embed code into Wix HTML box, It will give error. This guide fixes that. You don’t need to know how to code – you’re copying and pasting one file.

Table of Contents

  • Watch the tutorial video
  • Requirements
  • Why the normal HTML embed doesn’t work
  • Step-by-step guide
    • Step 1: Generate your embed code in VdoCipher
    • Step 2: Turn on Dev Mode in the Wix Editor
    • Step 3: Add the Custom Element
    • Step 4: Create a new JS file
    • Step 5: Paste the code into the velo file
    • Step 6: Paste the OTP and playbackInfo
    • Step 7: Point it at the velo file
    • Step 8: Set the tag name
    • Step 9: Publish and open the live site
  • About the names
  • Worth knowing

Watch the tutorial Video

The whole setup, start to finish. If you’d rather read, the written steps below cover exactly the same ground.

Requirements:

  • A paid Wix plan. Any Premium plan. Free sites can’t do this.
  • Custom domain, connected to the site. Not the free yoursite.wixsite.com address. A subdomain of a domain you already own is fine.

These are Wix’s rules, not VdoCipher’s. Wix requires them for the feature we’re about to use.

Why the normal HTML embed doesn’t work

Your videos are protected by DRM. For DRM to work, the browser has to be given explicit permission to decrypt the video. That permission lives in one small piece of the embed code:

allow="encrypted-media"

Wix deletes that piece automatically when you paste the embed into its HTML box and save it.

To fix this, Wix has a feature for this called a Custom Element and dev mode.

Step-by-step Guide

Step 1: Generate your embed code in VdoCipher Dashboard

Generate Embed Code

Log in to your VdoCipher dashboard and open your video library. Pick the video you want to embed, generate the embed code.

You’ll get a block of code starting with <iframe. Paste it somewhere safe for now like google docs or notes app. You’ll pull two values out of it later.

Step 2: Go to Wix Editor and Turn on Dev Mode

The Wix Editor top menu with the Velo Dev Mode panel open and a Turn on Dev Mode button.

Open your site in the Wix Editor. In the top menu, click Dev Mode, then Turn on Dev Mode.

Step 3: Add the Custom Element

In the left sidebar click Add Elements → then Embed Code → then Custom element. Drag it onto the page where you want the video. Adjust the element size to fit your design

Step 4: Create new js file

Wix editor panel showing create new file button

In the new sidebar, Click “Backend & Public” open the Public folder, then the custom-elements folder inside it. Add a new file there and name it vdocipher-embed.js.

The folder matters. If the file isn’t in public/custom-elements/, Wix won’t offer it to you later and you’ll be stuck at step 6.

Step 5: Paste this code into the velo file

paste the code in the wix velo file

Delete anything already in the file first, then paste this in. You’ll replace the two values at the top in a moment.

const OTP = 'PASTE_YOUR_OTP_HERE';
const PLAYBACK_INFO = 'PASTE_YOUR_PLAYBACK_INFO_HERE';

class VdoCipherEmbed extends HTMLElement {
  connectedCallback() {
    const iframe = document.createElement('iframe');

    iframe.src = 'https://player.vdocipher.com/v2/?otp=' + OTP +
                 '&playbackInfo=' + PLAYBACK_INFO;

    // This line is the whole point. Wix never sees it, so it can't delete it.
    iframe.setAttribute('allow', 'encrypted-media *; fullscreen *; autoplay *');
    iframe.setAttribute('allowfullscreen', 'true');
    iframe.setAttribute('title', 'VdoCipher video player');

    iframe.style.cssText =
      'border:0;height:360px;width:640px;max-width:100%;display:block';

    this.appendChild(iframe);
  }
}

if (!customElements.get('vdocipher-embed')) {
  customElements.define('vdocipher-embed', VdoCipherEmbed);
}

That’s the trick, in one line: we build the video player with code instead of pasting it as text. Wix only strips the permission out of pasted text. It never inspects what the code builds.

step 6: Paste the OTP and playbackInfo in the code

Now you need your OTP and your playbackInfo. Both are already sitting in the embed code VdoCipher gave you. Here’s a sample embed:

<iframe src="https://player.vdocipher.com/v2/?otp=20160313versASE3232a3Osr5dPG6L7FPaZQ2H1IDxC3bxKa19Nb8sOYeKtPTGLT&playbackInfo=eyJ2aWRlb0lkIjoiYWFmY2ExNTEzMjg4NDIwOWI2OGIyMWNmMGZjYWM2YzcifQ==" style="border:0;height:360px;width:640px;max-width:100%" allowFullScreen="true" allow="encrypted-media"></iframe>

Two chunks. That’s all you need from it.

  • The OTP is everything between otp= and &playbackInfo=
  • The playbackInfo is everything between playbackInfo= and the closing quote mark. Include the == at the end.

Drop those two values into the top of your file. For the sample embed above, the finished file looks exactly like this:

const OTP = '20160313versASE3232a3Osr5dPG6L7FPaZQ2H1IDxC3bxKa19Nb8sOYeKtPTGLT';
const PLAYBACK_INFO = 'eyJ2aWRlb0lkIjoiYWFmY2ExNTEzMjg4NDIwOWI2OGIyMWNmMGZjYWM2YzcifQ==';

class VdoCipherEmbed extends HTMLElement {
  connectedCallback() {
    const iframe = document.createElement('iframe');

    iframe.src = 'https://player.vdocipher.com/v2/?otp=' + OTP +
                 '&playbackInfo=' + PLAYBACK_INFO;

    iframe.setAttribute('allow', 'encrypted-media *; fullscreen *; autoplay *');
    iframe.setAttribute('allowfullscreen', 'true');
    iframe.setAttribute('title', 'VdoCipher video player');

    iframe.style.cssText =
      'border:0;height:360px;width:640px;max-width:100%;display:block';

    this.appendChild(iframe);
  }
}

if (!customElements.get('vdocipher-embed')) {
  customElements.define('vdocipher-embed', VdoCipherEmbed);
}

Step 7: Point it at velo file

Screenshot showing - select velo file as source

Click the custom element, then Choose Source. Pick Velo file, and select vdocipher-embed.js from the dropdown.

Step 8: Set the tag name

screenshot showing update the tag name.

In the same panel, clear the Tag name box and type:

vdocipher-embed

This has to match the name in the last line of your code exactly. One wrong character and nothing shows up.

Step 9: Publish, then open the live site

Showing successful video embed

Click Publish, then visit your actual site address.

Wix Preview will not show it. Only the published site will have the embedded video. If you have any question or need tech support send us an email at support@vdocipher.com

Information about the File Names

Three names come up in this guide, and only two of them have to match.

Name Example Rule
The file name vdocipher-embed.js Call it whatever you like.
Tag name in the editor vdocipher-embed Must match the name in your code.
Name inside customElements.define() vdocipher-embed Must match the tag name in the editor.

One rule that isn’t optional: the tag name must contain a hyphen. vdocipher-embed works. vdocipherembed does not, and it fails without telling you why.

Easiest approach: use the same name in all three places, like this guide does. Then there’s nothing to get wrong.

Clarification:-

  • This is a Wix limitation, not VdoCipher. The same workaround applies to any DRM video player on Wix.
  • The Custom Element only appears on the published site. It won’t render in the editor, so don’t panic when the box looks empty while you’re working.
  • To add a second video, repeat the whole thing with a different file name and a different tag name – for example vdocipher-embed-two.
  • On other platforms this is much simpler. See our guides to embedding videos in WordPress and video embedding in general.

DRM video hosting for Wix websites

We host video with Widevine and FairPlay DRM and dynamic watermarking, so your video can not be downloaded. It works on Wix, Teachable, WordPress, and most site builders. Secure your course from piracy.

Free 30-day trial →
Decorative Circle
Saurabh Shah
Saurabh Shah

Leading Growth at VdoCipher. I love building connections that help businesses grow and protect their revenue. Outside of work, I’m always exploring new technology and startups.

Filed Under: Integrations LMS Tagged With: DRM video LMS vdocipher embed Video Hosting Wix

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Secure Your Videos

Blog Categories

  • DRM 
  • WordPress
  • E-learning
  • Media
  • Video Tech

Popular Posts

  • Google Widevine DRM
  • WordPress video plugin
  • Video Quality
  • Dynamic Watermarking
  • Encrypted Video Streaming
  • Video Hosting For Online Courses
  • Online Video Player
  • Apple Fairplay DRM
  • SVOD VS TVOD VS AVOD
  • Exoplayer
  • DRM

Top Recent Posts

  • Enterprise Video Platform
  • Cloud Video Platform
  • Video Player for Android
  • DRM Solution
  • Video Bitrate
  • React Native Video
  • Video Piracy
  • Learning Management System
  • AVPlayer
  • Live Streaming Websites
  • DRM Providers
  • DRM Security
  • Private Video Hosting
  • HTML5 Video Player

Schedule Demo Link
Popular Blogs
  • How many use easy video download piracy tools ?
  • Apple FairPlay DRM : Video Protection on iOS & Safari
  • 12 Video Piracy Statistics, 6 Prevention Methods
  • Elearning Video Protection from Piracy
  • Content Creator Economy Growth and other Statistics Report
  • Top 21 Education Apps In India For Online Learning
  • How To Embed Videos in WordPress A Comprehensive Guide
  • Live Streaming Platform For E-learning Media & Broadcast
  • Explained in Simple Language, 32 Key DRM Encryption Terminologies
  • Best Video Player for Android Comparison 2024
Recent Blogs
  • How To Embed VdoCipher Video on Wix
  • Private & Compliant by Design: VdoCipher Meets GDPR, DPDP & US Privacy Laws
  • History of Netflix: When It Started, Founders & Key Milestones
  • Netflix Similar Apps – Top Netflix Alternatives in 2026
  • Google Widevine DRM: Guide to Security & Integration
  • Top 14 Video Downloaders: How They Work & How to Stop Them
  • Widevine Content Decryption Module or CDM DRM & its browser components
  • What is Video Resolution, Types, Advantages & Disadvantages
Featured Blogs
  • Online Video Player
  • Video Encryption
  • Video Protection
  • Video Hosting
  • Widevine DRM
  • Fairplay DRM
  • Video Quality
  • Online Video Platform
  • Video hosting for business
Comparison
  • Vimeo Alternative
  • Dacast Alternative
  • YouTube Alternative
  • Zoom Alternative
  • JW Player Alternative
  • Dacast Live Alternative
  • Kaltura Alternative
  • Brightcove Alternative
  • Gumlet Alternative
    Contact Us
  • Phone : +91 7619171878
  • Whatsapp : +91 7042238654
  • E-mail : support@vdocipher.com
Company
  • Home
  • Glossary
  • Features
  • About Us
  • Pricing
  • FAQs
  • Affiliate
  • Contact
  • Customer Stories
Services
  • Enterprise
  • E-Learning
  • Developer
  • Healthcare
  • Live Streaming Platform
  • Video Analytics
  • Media and Entertainment
  • Video DRM and Antipiracy
  • APIs for Developers
  • Video Hosting
  • Video API
  • Bandwidth Calculator
  • Google DRM
  • DRM License Server
  • Custom Video Player
  • Play Integrity
Tools
  • Video Compressor
  • Bandwidth Calculator
  • Pricing Calculator
  • Caption Generator
  • HLS Player
  • DASH Player
Countries Served
  • Secure Video Hosting in USA
  • Secure Video Hosting in India
  • Secure Video Player in Brazil
  • Secure Video Streaming in UK
  • Secure Video Streaming in Saudi Arabia
  • Video Encryption in Spain
  • Video Encryption in Italy
  • Protected Video Streaming in Indonesia
  • Encrypted Video Player in Canada
  • Protected Video Streaming in Australia
  • Encrypted Video Player in Germany
  • Video DRM for Sri Lanka
  • Video DRM for Middle East
  • DRM Encryption for Europe
  • DRM Encryption for Asia
  • DRM Solutions for Japan
  • DRM Solutions for UAE
  • DRM Software for Chile
  • DRM Software for Russia

Copyright © 2026 VdoCipher. All rights reserved.

  • Terms
  • Privacy Policy