-
Notifications
You must be signed in to change notification settings - Fork 63
/
autoq.php
14 lines (14 loc) · 975 Bytes
/
autoq.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
header("Content-Type: application/vnd.apple.mpegurl");
echo '#EXTM3U' . PHP_EOL;
echo '#EXT-X-VERSION:3' . PHP_EOL;
echo '#EXT-X-STREAM-INF:PROGRAM-ID=1,CLOSED-CAPTIONS=NONE,BANDWIDTH=250000,RESOLUTION=426x240' . PHP_EOL;
printf("live.php?c=%s&q=250&e=.m3u8" . PHP_EOL, $_GET['c']);
echo '#EXT-X-STREAM-INF:PROGRAM-ID=1,CLOSED-CAPTIONS=NONE,BANDWIDTH=400000,RESOLUTION=640x360' . PHP_EOL;
printf("live.php?c=%s&q=400&e=.m3u8" . PHP_EOL, $_GET['c']);
echo '#EXT-X-STREAM-INF:PROGRAM-ID=1,CLOSED-CAPTIONS=NONE,BANDWIDTH=600000,RESOLUTION=842x480' . PHP_EOL;
printf("live.php?c=%s&q=600&e=.m3u8" . PHP_EOL, $_GET['c']);
echo '#EXT-X-STREAM-INF:PROGRAM-ID=1,CLOSED-CAPTIONS=NONE,BANDWIDTH=800000,RESOLUTION=1024x576' . PHP_EOL;
printf("live.php?c=%s&q=800&e=.m3u8" . PHP_EOL, $_GET['c']);
echo '#EXT-X-STREAM-INF:PROGRAM-ID=1,CLOSED-CAPTIONS=NONE,BANDWIDTH=1200000,RESOLUTION=1280x720' . PHP_EOL;
printf("live.php?c=%s&q=1200&e=.m3u8" . PHP_EOL, $_GET['c']);