DRM সুরক্ষা সহ একটি HTML5 ভিডিও প্লেয়ার কীভাবে এম্বেড করবেন?
HTML5 ভিডিওর জন্য Haihaisoft-এর DRM-X 5.0, এটি HTML5 ভিডিও ট্যাগ ব্যবহার করছে। কন্টেন্ট প্রদানকারীরা স্ট্যান্ডার্ড HTML5 ভিডিও ট্যাগ ব্যবহার করে এবং VideoJS-এর মতো বিখ্যাত HTML5 প্লেয়ার ব্যবহার করে এবং HTML5 প্লেয়ারের সাথে ইন্টারঅ্যাক্ট করার জন্য জাভাস্ক্রিপ্ট ব্যবহার করে সহজেই ভিডিও এম্বেড করতে পারে।

DRM সুরক্ষা সহ একটি HTML5 ভিডিও প্লেয়ার কীভাবে এম্বেড করবেন?
যদি আপনার প্লেয়ারটি গভীরভাবে পরিবর্তন করার প্রয়োজন না হয়, তাহলে ভিডিওটি এম্বেড করতে নীচের কোডটি ব্যবহার করুন।
<div id="ZJGet_Video_URL" style="display: none;">https://www.drm-x.com/download/drmx5/HolyForever-ChrisTomlin_P.mp4</div>
<script type="text/javascript" src="https://www.zjget.com/assets/embed_js/embed_zjget.js"></script>
<script type="text/javascript" src="https://www.zjget.com/assets/videojs-8.23.3/video.min.js"></script>
<script type="text/javascript" src="https://www.zjget.com/assets/embed_js/zjget.js"></script>যদি আপনার প্লেয়ারটি পরিবর্তন করার প্রয়োজন হয়, তাহলে অনুগ্রহ করে নিম্নলিখিত ভূমিকাটি দেখুন।
হেডে VideoJS অন্তর্ভুক্ত করুন:
<!--Include VideoJS library-->
<link rel="stylesheet" type="text/css" href="css/video-js.css" />
<script src="js/video.js" type="text/javascript" charset="utf-8"></script>
<!--Using VideoJS skin-->
<link rel="stylesheet" type="text/css" href="css/skin/TechSkin-skin.css" />আপনার ওয়েবসাইটের স্টাইল অনুসারে আপনি অন্য স্কিনটিও ব্যবহার করতে পারেন।
এখানে আমরা একটি VideoJS স্কিন জেনারেশন টুল সুপারিশ করছি, আপনি প্লেয়ার স্কিন কাস্টমাইজ করতে পারেন। https://codepen.io/heff/pen/EarCt
ভিডিওজেএস এম্বেড করুন:
বিঃদ্রঃ: iOS এর জন্য, অনুগ্রহ করে zjget_ios_media_url আইডি মান সহ একটি div যোগ করুন, div লুকান, div তে ভিডিও url লিখুন, ZJGet স্বয়ংক্রিয়ভাবে ট্যাগটি চিনবে এবং ব্যবহারকারীকে এই ভিডিওটি চালানো হবে কিনা তা জিজ্ঞাসা করবে। যেমন:
<div id="zjget_ios_media_url" style="display: none;">https://www.drm-x.com/download/drmx5/HolyForever-ChrisTomlin_P.mp4</div>iOS মিডিয়া URL এর জন্য ZJGet এর সর্বশেষ সংস্করণটি নোট করে:
যদি আপনি চান যে আপনার গ্রাহকরা iOS-এ আপনার ভিডিও চালান, তাহলে আপনার লিঙ্কে নিম্নলিখিত বৈশিষ্ট্যগুলি থাকতে হবে, _P সহ। উদাহরণস্বরূপ, লিঙ্কটিতে _P.mp4, _P.webm অথবা _P.mp3 রয়েছে, যা কেস-সংবেদনশীল নয়। অথবা zjget রয়েছে। আপনি ডাউনলোড লিঙ্কের যেকোনো স্থানে এই বৈশিষ্ট্যগুলির মধ্যে একটি অন্তর্ভুক্ত করতে পারেন, তারপর iOS-এর জন্য ZJGet ডাউনলোডগুলি সনাক্ত করে এবং সমর্থন করে।
<div id="LoadingText" style="display: none;" align="center">
Please wait, connecting to obtain license page...
</div>
<div id="cellular_button" align="center"></div>
<div align="center">
<script type="text/javascript">
// Detecting current browser, if not ZJGet, It Will remind the user to open the protected files in ZJGet browser,
// and remind the user to download ZJGet browser.
if(navigator.userAgent.indexOf("ZJGet") == -1){
document.write('Please open the protected files in ZJGet browser. Download ZJGet');
}else{
// Use HTML5 video tag;
// ZJGet will automatically change the video tag's ID,
// here zjget_player will automatically become zjget_player_html5_api;
// Use src attribute specifies video URL;
// class="video-js" using VideoJS style.
// In data-setup, use "autoplay":true; add auto play control;
// In data-setup, you can use "playbackRates": [0.5, 0.7, 1, 1.5, 2, 3, 4] add control speed function.;
document.write('<'video id="zjget_player" controls="controls" class="video-js" data-setup=\' {"playbackRates": [0.5, 0.7, 1, 1.2, 1.5, 2], "autoplay":false, "width": 856, "height": 480 }\'><'source src="https://www.drm-x.com/download/drmx5/HolyForever-ChrisTomlin_P.mp4" type="video/mp4"></video>);
}
</script>
</div>জাভাস্ক্রিপ্ট কোড:
<script type="text/javascript">
document.onreadystatechange = function() {
if (document.readyState == "complete") { // After the page is complete, and execute,Required;
// Get HTML5 player
// ZJGet will automatically change zjget_player become zjget_player_html5_api;
myVid=document.getElementById("zjget_player_html5_api");
// Get detail information return by the player,
// if user need to obtain a license, It will return a URL;
// Otherwise, It will return the details of the protected file information and the license information.
isSupp=myVid.canPlayType('zjget');
// Check the mobile phone network type
if(navigator.userAgent.indexOf("Mobile ZJGet") > 0){
var con = window.navigator.connection;
var network = con.type; // Mobile phone network:cellular; wifi:wifi
// Check whether your phone is using a mobile network or wifi
if (network == "cellular"){ // If the phone is using a mobile network, you need to add a button to get a license to the page
document.getElementById("cellular_button").innerHTML = '<'button style="height: 50px" class="m_g_b" onClick="supportType(event,\'video/ogg\',\'theora, vorbis\')">Play Protected file (Click 2 times)'<'/button>;
}
}
// If the information contained in the return message contains URL,
// it is required to obtain a license.
if(isSupp.indexOf("http")>0){
// Just a tips, non - must;
document.getElementById("LoadingText").style.display='block';
// Using substring to capture a URL to obtain license;
licURL = isSupp.substring(isSupp.indexOf("http"));
// Redirecting to obtain license page to verify and obtain license.
window.location.href = licURL;
}
}
};
</script>নিম্নলিখিত পদ্ধতিতে লাইসেন্সের তথ্য (খোলা গণনা এবং মেয়াদ শেষ হওয়ার তারিখ) সহ আরও তথ্য পাওয়ার জন্য একটি রেফারেন্স প্রদান করা হয়েছে, আপনি আপনার প্রয়োজনীয়তা অনুসারে এই তথ্য পেতে পারেন।
function supportType(e,vidType,codType){
myVid=document.getElementById("zjget_player_html5_api");
isSupp=myVid.canPlayType("zjget");
myVid.play();
licURL = isSupp.substring(isSupp.indexOf("http"));
if(isSupp.indexOf("http")>0){
window.location.href = licURL;
}else{
if(isSupp.indexOf("License")>0){
// Get open count
var openCount=isSupp.substring(isSupp.indexOf(":"),isSupp.indexOf(";"));
// Get the license expiration date
var ft=isSupp.substring(isSupp.indexOf(";")+1);
var ut = filetime_to_unixtime(ft);
var d = new Date(ut * 1000);
e.target.parentNode.innerHTML ="Open Count" + openCount + ", Expiration date:" + d.toLocaleString();
return;
}
if(isSupp.indexOf("Error ID = 3")>0){
e.target.parentNode.innerHTML ="License is expired, Please Re open the protected file to obtain a new license.";
return;
}
}
}অন্যান্য DRM-X 5.0 টিউটোরিয়াল
DRM-X 5.0 ZJGet উইন্ডোজ এনক্রিপশন টিউটোরিয়ালএই ভিডিওটি দেখাবে কীভাবে ZJGet ব্রাউজার ব্যবহার করে উইন্ডোজে ফাইল এনক্রিপ্ট করতে হয়।
এখন দেখুন
DRM-X 5.0 ZJGet macOS এনক্রিপশন টিউটোরিয়ালএই ভিডিওটি দেখাবে কীভাবে ZJGet ব্রাউজার ব্যবহার করে macOS ফাইল এনক্রিপ্ট করতে হয়।
এখন দেখুন
DRM-X 5.0 ZJGet উইন্ডোজ টিউটোরিয়ালএই ভিডিওটি আপনাকে দেখাবে কিভাবে ZJGet ব্রাউজার ব্যবহার করে উইন্ডোজে এনক্রিপ্ট করা ফাইল ডাউনলোড, ইনস্টল এবং খুলতে হয়।
এখন দেখুন
DRM-X 5.0 ZJGet টেক্সট টিউটোরিয়ালZJGet ব্রাউজার ব্যবহারকারী গাইড। এই টিউটোরিয়ালটি আপনাকে ZJGet ব্রাউজারের মূল বৈশিষ্ট্য এবং ব্যবহারিক টিপস সহজে আয়ত্ত করতে সাহায্য করবে।
এখন দেখুন
DRM-X 5.0 ZJGet প্রায়শই জিজ্ঞাসিত প্রশ্নাবলী (FAQ)ZJGet ব্রাউজার ব্যবহার সংক্রান্ত প্রায়শই জিজ্ঞাসিত প্রশ্নাবলী (FAQ)। এই বিভাগটি সবচেয়ে উপযোগী প্রশ্নোত্তরগুলি সংকলন করেছে যা আপনাকে আপনার মুখোমুখি হতে পারে এমন যেকোনো বাধা অতিক্রম করতে সাহায্য করবে।
এখন দেখুন
DRM-X 5.0 আমার প্রার্ট করুন প্রার্ট প্রার্ট প্রার্ট প্রার্ট প্রার্ট প্রার্ট প্রার্ট প্রার্ট প্রার্ট প্রার্টার্ট প্রThe DRM-X 5.0 Automated Batch Encryption Tool offers both manual and automatic scanning modes, supports multiple file formats, and enables PDF-to-HTML encryption, helping businesses efficiently and automatically implement digital rights management for batch files.
এখন দেখুনপ্রশ্ন?
আমাদের প্রতিনিধিদের কাছে উত্তর আছে।
haihaisoftের পণ্য, মূল্য নির্ধারণ, বাস্তবায়ন, বা অন্য কিছু সম্পর্কে জিজ্ঞাসা করুন — আমাদের উচ্চ প্রশিক্ষিত প্রতিনিধিরা সাহায্যের জন্য প্রস্তুত, পাশে আছেন।
টেলিফোন: +64 27 507 9959 (নিউজিল্যান্ড)
প্রশ্ন: ১২৭৯১২৬২৮৬ / ৯৯৪১৮৪৬২৩
আমাদের সাথে যোগাযোগ করুন মাইক্রোসফট টিমস
service#haihaisoft.com (# কে @ দিয়ে প্রতিস্থাপন করুন)
যোগাযোগ