tvzb 发表于 2023-10-14 10:06:50

蜀小果ipv6代码源码

转:
<?php
date_default_timezone_set("Asia/Shanghai");
$channel = empty($_GET['id']) ? "emdy4k_8000" : trim($_GET['id']);
$array = explode("_", $channel);
if (isset($array)) {
    $stream = "http:///live2.rxip.sc96655.com/live/8ne5i_sccn,{$array}_hls_pull_{$array}K/";
} else {
    $stream = "http:///live2.rxip.sc96655.com/live/8ne5i_sccn,{$array}_hls_pull_4000K/";
}
$timestamp = intval((time() - 60) / 6);
$current = "#EXTM3U" . "\r\n";
$current .= "#EXT-X-VERSION:3" . "\r\n";
$current .= "#EXT-X-TARGETDURATION:6" . "\r\n";
$current .= "#EXT-X-MEDIA-SEQUENCE:{$timestamp}" . "\r\n";
for ($i = 0; $i < 6; $i++) {
    $current .= "#EXTINF:6," . "\r\n";
    $current .= $stream . rtrim(chunk_split($timestamp, 3, "/"), "/") . ".ts" . "\r\n";
    $timestamp = $timestamp + 1;
}
header("Content-Disposition: attachment; filename=index.m3u8");
echo $current;


金生丽水 发表于 2023-10-14 10:13:22

谢谢楼主的分享

dqb168 发表于 2023-10-27 20:58:59

感谢感谢

侠客126 发表于 2023-10-28 06:32:39

已失效,,,

linxiaolin280 发表于 2023-12-6 23:49:36

失效了吗这个代理

kimzhu 发表于 2023-12-23 11:42:24

谢谢楼主的分享
页: [1]
查看完整版本: 蜀小果ipv6代码源码