-
Notifications
You must be signed in to change notification settings - Fork 7
/
yupptv.php
50 lines (34 loc) · 1006 Bytes
/
yupptv.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
<?php
/* The following code retrieves the m3u8 link from YuppTV (FTA channels)
Usage format: http://localhost/yupptv.php?c=9XM
Contributed by: [email protected]
*/
session_start();
$postdata = http_build_query(
array(
"vdevid" => 5,
"vtenantId" => 3,
"vstreamname" => $_REQUEST["c"],
"vstreamkey" => "LIVE",
"vapi" => "",
"vuserid" => "",
"vbox" => "",
"format" => "json",
"isseekstarttime" => "",
"isseekendtime" => ""
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = file_get_contents("http://apidon.yupptv.in/YuppSlateMobileService.svc/getstreamurlbyname", false, $context);
$arr=json_decode($result,true);
$_SESSION["m3u"] = $arr["streamurl2"];
echo $arr["streamurl2"];
echo var_dump($arr);
?>