forked from leo9843/JioTv-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjwdrm.php
More file actions
51 lines (51 loc) · 2.03 KB
/
jwdrm.php
File metadata and controls
51 lines (51 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="theme-color" content="black">
<title><?=$name?></title>
<style>*{margin:0;padding:0;outline:none;}*:focus{outline:none;}#jwplayer{position: absolute;width:100% !important;height:100% !important;}</style>
<link rel='stylesheet' href='https://cdn.jsdelivr.net/gh/jwplayer/web-player-demos/demos/custom-css-demo/assets/alaska.css'>
</head>
<body>
<script src="https://content.jwplatform.com/libraries/KB5zFt7A.js"></script>
<script type="text/javascript">
window.onload=function(){
const playerInstance = jwplayer("jwplayer").setup({
image: "https://akamaividz2.zee5.com/image/upload/w_1337,h_536,c_scale,f_webp,q_auto:eco/resources/0-101-externalli_443308300/cover/1170x658withlog_1948036612.jpg",
title: "<?=$name?>",
description: "Powered by Acrotv",
skin: {name: "alaska"},
fullscreen: "true",
autostart: false,
controls: true,
preload: "auto",
playbackRateControls: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 2],
abouttext: "About Developer",
aboutlink: "https://github.com/mohd-baquir-qureshi",
"file":"<?=$link?>",
tracks: [{
"file": "<?=$sub?>",
"label": "English",
"kind": "captions"
}],
<?php if(strpos($link,'mpd') == true) { ?>
"type":"mpd",
"drm": {
"widevine": {"url": "<?=$lice?>"}
}
<?php } if(strpos($link,'m3u8') == true) { ?>
"type":"mp4"
<?php } ?>
});
playerInstance.on('ready', function() {
const playerContainer = playerInstance.getContainer();
const buttonContainer = playerContainer.querySelector('.jw-button-container');
const spacer = buttonContainer.querySelector('.jw-spacer');
const timeSlider = playerContainer.querySelector('.jw-slider-time');
buttonContainer.replaceChild(timeSlider, spacer);
});
}
</script>
<div id="jwplayer"></div>
</body>
</html>