-
Notifications
You must be signed in to change notification settings - Fork 1
/
jw_player.php
139 lines (135 loc) · 3.29 KB
/
jw_player.php
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
if (!ini_get('date.timezone')) {
date_default_timezone_set('Europe/Tirane');
}
// Function by [email protected]
function jw_player($url){
$stream_url = @$_GET['url'];
if(!$stream_url)
$stream_url = "";
$stream_url = str_replace(
// REPLACE FROM
array(" "),
// REPLACE TO
array("%20"),
$stream_url
);
$width = '100%';
$height = '100%';
{
$player_code = '<!doctype html>
<!----/>
Player Code Generated From https://demo.kodi.al/My_Tools/Players_Tools/Player_Builder/JW_Player/
<!---->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RSS Player</title>
<link rel="shortcut icon" href="https://kodi.al/panel.ico"/>
<link rel="icon" href="https://kodi.al/panel.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="JW Player Code Builder" />
<meta name="author" content="Olsion Bakiaj - Endrit Pano" />
<meta property="og:site_name" content="JW Player Code Builder">
<meta property="og:locale" content="en_US">
<meta name="msapplication-TileColor" content="#0F0">
<meta name="theme-color" content="#0F0">
<meta name="msapplication-navbutton-color" content="#0F0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#0F0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css">
<!-- Include CDN Player --/>
<script src="https://content.jwplatform.com/libraries/Jq6HIbgz.js"></script>
<!-- Include CDN Player -->
<script type="text/javascript" src="https://content.jwplatform.com/libraries/Jq6HIbgz.js"></script>
<style type="text/css">
#player{position:absolute;width:100%!important;height:100%!important;}
</style>
<style type="text/css">
body,td,th {
color: #0F0;
}
body {
background-color: #000;
}
a:link {
color: #0FC;
}
a:visited {
color: #3F6;
}
a:hover {
color: #09F;
}
a:active {
color: #009;
}
</style>
</head>
<body>
<div id="player"></div>
<script>
jwplayer("player").setup({
playlist: [
{
image: "https://png.kodi.al/tv/albdroid/logo_bar.png",
sources: [
{
file: "'.$stream_url.'",
type: \'audio/mpeg\',
},
]
}
],
/* LOGO POSITIONS
top-right
bottom-left
bottom-right
bottom-left
*/
logo: {
file: "https://png.kodi.al/tv/albdroid/logo_bar.png",
position: "top-right"
},
skin: {
name: "netflix",
// TO LOAD COLORS FROM CSS SKINS CLOSE THE 3 LINES IN EXTRA CONTROLS COLOR
// EXTRA CONTROLS COLOR
active: "#0F0",
inactive: "#0F0",
background: "transparent"
// EXTRA CONTROLS COLOR
},
/* STRETCHING OPTIONS
RESOLUTION
stretching = object-fit
none =none
exactfit = fill
fill = cover
uniform = contain*
*/
//stretching: "uniform",
stretching: "uniform",
controls: true,
displaytitle: true,
fullscreen: "true",
height: "100%",
width: "100%",
fallback: false,
repeat: true,
autostart: false,
//primary: "flash",
primary: "html5",
aspectratio: "16:9",
renderCaptionsNatively: false,
mute: false
});
</script>
</body>
</html>';
}
return $player_code;
}
echo jw_player("");
?>