视频解析PHP文件(多接口调用)

免费分享,不多说,看源码。

使用方法:xxx.php?url=

接口可以自己找几个,把下面的标有替换成接口的地方替换成你找的接口

复制下面代码另存为xxx.php,编码UTF-8

可能支持解析优酷、芒果、乐视、腾讯、爱奇艺,主要看你找的接口支持什么站的。

效果看:https://lirongyao.com/player/ 选择在线解析

<?php
error_reporting(0);
header("Content-Type: text/html; charset=utf-8");
$url=$_GET["url"];
$height=isset($_GET['height']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>荣耀解析</title>
<style type="text/css">
*{margin: 0; padding: 0; border: 0}
ul, ol{list-style: none}
img{display: block}
span, em, i, label{font-style: normal;display: inline-block}
table{border-collapse: collapse; border-spacing: 0}
td, th{padding: 0}
textarea,input{outline: 0;font-family: Microsoft YaHei}
body{background-color: #FFF; font-family: Microsoft YaHei, Helvetica Neue, Helvetica, Roboto, Heiti SC, STHeiTi, Arial, sans-serif; font-size: 14px; line-height: 1; color: #333;overflow: hidden}
a{color: #222; text-decoration: none;display: inline-block;}
a:hover{color: #0283ec; text-decoration: underline}
#tongdao{padding-left:10px;}
#tongdao a{display: inline-block;min-width: 50px;height: 25px;line-height: 25px;padding:0 4px 0 4px;text-align: center;color: #fff;border: 1px solid #fff;border-radius: 5px;margin:0 5px;}
#tongdao a:hover,#tongdao a.cur{color: #ff7b00;border: 1px solid #ff7b00;text-decoration: none;}
#tongdao{width: 100%;height: 50px;line-height: 50px;background: rgba(0,0,0,.5);position: absolute;top:-60px;left: 0;}
#play_box{position: relative;overflow: hidden;width: 100%; height: 100%;}
</style>
<!--
<script>var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
var bIsMidp = sUserAgent.match(/midp/i) == "midp";
var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
if (bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
window.location.replace('api.php?url=<?php echo $url ?>');
}</script>
-->
<SCRIPT language=javascript type=text/javascript>
<!--
document.oncontextmenu=new Function('event.returnValue=false;');
document.onselectstart=new Function('event.returnValue=false;');
-->
</SCRIPT>
<script>
function onKeyDown()
{
if ((event.keyCode==116)||(window.event.ctrlKey)||(window.event.shiftKey)||(event.keyCode==122))
{
event.keyCode=0;
event.returnValue=false;
}
}
</script>
<script>
function yxl() {
if(window.event.altKey)
{
window.event.returnValue=false;
}
}
document.onkeydown=yxl
</script>
</head>
<body onkeydown="onKeyDown()" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" style="padding:0;margin:0;background-color:black;">
<!--主框架-->
<iframe id="rtgrhth_play_box" name="iframe-player" height='100%' width='100%' src='替换成接口<?php echo $url ?>' frameborder=0 border="0" allowfullscreen="true"></iframe>
<div id="tongdao"><font color="#ffffff">选择线路:</font>
<a class="" target="iframe-player" rel="noopener">">接口1</a>
<a class="" target="iframe-player" rel="noopener">">接口2</a>
<a class="" target="iframe-player" rel="noopener">">接口3</a>
<a class="" target="iframe-player" rel="noopener">">接口4</a>
<a class="" target="iframe-player" rel="noopener">">接口5</a>
<a class="" target="iframe-player" rel="noopener">">接口6</a>
<a class="" target="iframe-player" rel="noopener">">接口7</a>
<a class="" target="iframe-player" rel="noopener">">接口8</a>
<a class="" target="iframe-player" rel="noopener">">接口9</a>
<a class="" target="iframe-player" rel="noopener">">接口10</a>
</div>
<!--主框架-->
<script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.min.js"></script>
<script>
$('#rtgrhth_play_box').parent().hover(function(){
$('#tongdao').stop().animate({'top':0});
},function(){
$('#tongdao').stop().animate({'top':-60});
})
$('#tongdao a').click(function(){
$(this).addClass('cur').siblings().removeClass('cur');
})
</script>
<script>
$(function(){
var h = $(window).height();
$('body').height(h);
$(window).resize(function(){
var h = $(window).height();
$('body').height(h);
})
});
</script>
</body>
</html>
点赞