-
Notifications
You must be signed in to change notification settings - Fork 0
/
Iframe_Player.php
67 lines (64 loc) · 3.26 KB
/
Iframe_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
<?php
/*
┌─────────────────────────────────────────────────────────────┐
| For More Modules Or Updates Stay Connected to Kodi dot AL |
└─────────────────────────────────────────────────────────────┘
┌───────────┬─────────────────────────────────────────────────┐
│ Product │ ipcamlive.com Stream Extractor By Alias [ID] │
│ Version │ v1.0-FREE │
│ Provider │ https://www.ipcamlive.com/ │
│ Support │ Iframe Player by ID │
│ Licence │ MIT │
│ Author │ Olsion Bakiaj │
│ Email │ [email protected] │
│ Author │ Endrit Pano │
│ Email │ [email protected] │
│ Website │ https://kodi.al │
│ Facebook │ /albdroid.official/ │
│ Github │ github.com/SxtBox/ │
│ Created │ 16 November 2020 │
└─────────────────────────────────────────────────────────────┘
*/
/*
TO GET STREAM REQUIRED ONLY THE Alias ID => ?id=+alias
DIRECT LINK http://ipcamlive.com/player/player.php?alias=599eeee0b0b89
DIFFERENT PLAYER HOST g1 g2 g3 ETC
http://g1.ipcamlive.com/player/player.php?alias=5aea0a2674e5d
http://g1.ipcamlive.com/player/player.php?alias=5aea0854caea0
*/
error_reporting(0);
date_default_timezone_set("Europe/Tirane");
$alias = isset($_GET['id']) && !empty($_GET['id']) ? $_GET['id'] : "599eeee0b0b89"; // << alias
$source = file_get_contents(trim('https://ipcamlive.com/player/player.php?alias='.$alias));
$debug = "&debug=0"; // 1 OR 0 DEFAULT IS ZERO
$autoplay = "autoplay=1"; // 1 OR ZERO
$token = "token="; // DO NOT TOUCH IT
$player_php = "https://ipcamlive.com/player/player.php?alias=";
if(preg_match("/var alias = '(.*?)'/",$source,$alias_matches))
{
$streamid = $alias_matches[1];
}
if(preg_match("/var token = '(.*?)'/",$source,$token_matches))
{
$get_token = $token_matches[1];
}
$stream_url = $player_php.$streamid."&".$autoplay."&".$token.$get_token.$debug;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Albdroid Webcam Streaming</title>
<link rel="shortcut icon" href="https://www.ipcamlive.com/tpls2/img/ipcamlive_favicon_128.png"/>
<link rel="icon" href="https://www.ipcamlive.com/tpls2/img/ipcamlive_favicon_128.png"/>
</head>
<style type="text/css">
body,td,th {
color: #0F0;
}
body {
background-color: #000;
}
</style>
<iframe allowfullscreen="" frameborder="0" height="100%" src="<?php echo $stream_url; ?>" width="100%">
</iframe>
</html>