How to Embed DRM-X 5.0 Protected Videos in an HTML5 Video Player
This tutorial explains how to embed DRM-X 5.0 protected videos in a web page using an HTML5 video player. You can use the ready-to-use ZJGet embed script for quick integration, or customize the player with Video.js and JavaScript for greater control over playback, license acquisition, and the user experience.

Quick Integration with the ZJGet Embed Script
Use the following code if you want to embed a protected video without customizing the player interface or playback logic.
If you need to modify the player, please refer to the following introduction.
Custom Player with Video.js
Use Video.js and JavaScript if you want to customize the player interface, playback controls, or license acquisition process.
Include Video.js in head
You can also use the other skin according to the style of your website.
Here we recommend a VideoJS skin generation tool, you can customize the player skin. https://codepen.io/heff/pen/EarCt
Support Playback on iOS
Note: For iOS, please add a div with the id value of zjget_ios_media_url, hide the div, write the video url in the div, ZJGet will automatically recognize the tag, and prompt the user whether to play this video. such as:
iOS Video URL Requirements
If you want your customers to play your videos on iOS, you must have the following characteristics in the link, with _P. For example, the link contains _P.mp4, _P.webm or _P.mp3, which is case-insensitive. Or contains zjget. You can include one of these characteristics in any location on the download link, then ZJGet for iOS recognizes and supports downloads.
Javascript Code:
The following method provides a reference to obtain more information, including the license information (Open Count and Expiration Date), you can get this information according to your requirements.
Other DRM-X 5.0 Tutorials
DRM-X 5.0 Introduction VideoDRM-X 5.0 is a new generation of encryption software platform. Haihaisoft provides common DRM-X 5.0 video demo tutorials, including DRM-X 5.0 introduction, video encryption tutorial, webpage encryption tutorial, and how to embed HTML5 video player.
WATCH NOW
How to Protect Videos with DRM-X 5.0 ZJGet for WindowsThis video will demonstrate how to encrypt files on Windows using ZJGet browser.
WATCH NOW
How to Protect Videos with DRM-X 5.0 ZJGet for macOSThis video will demonstrate how to encrypt files on macOS using ZJGet browser.
WATCH NOW
Getting Started with DRM-X 5.0 ZJGet for WindowsThis video will show you how to download, install, and open encrypted files on Windows using the ZJGet browser.
WATCH NOW
DRM-X 5.0 ZJGet User GuideZJGet Browser User Guide. This tutorial will help you easily master the core features and practical tips of the ZJGet browser.
WATCH NOW
DRM-X 5.0 ZJGet FAQFrequently Asked Questions (FAQ) about using ZJGet Browser. This section compiles the most useful Q&As to help you overcome any obstacles you may encounter.
WATCH NOWQuestions?
Our reps have answers.
Ask about Haihaisoft products, pricing, implementation, or anything else — our highly trained reps are standing by, ready to help.
Tel: +64 27 507 9959 (New Zealand)
QQ: 1279126286 / 994184623
Contact us on Microsoft Teams
service#haihaisoft.com (replace # into @)
Contact Us