当前位置:   article > 正文

基于源码仿建视频解析网站_视频解析下载网站源码

视频解析下载网站源码

0源码下载

1仿建网站

1.1网址

1.2效果图

1.3使用方法

将视频的链接地址或视频所在网页粘贴解析播放即可

2源码解析

2.1index.html-视频区域BOX

		<iframe id="palybox" src="http://vip.gzzza.com/vip.php?url=" 
                allowfullscreen="true"  allowtransparency="true"  allowfullscreen="true"  allowtransparency="true" 
  1. frameborder="0" scrolling="no"></iframe>
  2. <div class="url-box">
  3. <div class="input-group">
  4. <input type="text" id="url" class="form-control url-text" aria-label="Text input with segmented button dropdown" placeholder="请在这粘贴视频网址" title="请复制你想要看的视频网址,粘贴到此处点击播放即可!" value="http://www.iqiyi.com/v_19rrf95tfg.html">
  5. <div class="input-group-btn">
  6. <button type="button" class="btn btn-default btn-play" title="点击开始解析并开始播放" onclick="play()">解析播放</button>
  7. </div>
  8. </div>
  9. </div>

视频区域是用的是一个包含播放器、url输入框,解析按钮的名为container的类。之前发现好多视频解析网站都不支持全屏播放影响观影体验,黄色代码是我加上去实现全屏播放的。

2.2源码vip.php分析

<?php
    @ $url = $_REQUEST[ 'url'];
    @ $pass = isset( $_REQUEST[ 'pass'])? $_REQUEST[ 'pass']:- 1;
     switch( $pass)
    {
     case 0:
         $jxurl = 'http://000o.cc/jx/yk.php?url=';
         break;
     case 1:
         $jxurl = 'http://api.baiyug.cn/vip/index.php?url=';
         break;
     case 2:
         $jxurl = 'https://api.daidaitv.com/index/?url=';
         break;
     case 3:
         $jxurl = 'http://jx.maoyun.tv/index.php?id=';
         break;
     case 4:
         $jxurl = 'https://api.47ks.com/webcloud/?v=';
         break;
     case 5:
         $jxurl = 'http://www.82190555.com/video.php?url=';
         break;
     case 6:
         $jxurl = 'http://api.iy11.cn/apiget.php?url=';
         break;
     case 7:
         $jxurl = 'http://jx.agxia.com/index.php?url=';
         break;
     case 8:
         $jxurl = 'http://jiexi.071811.cc/jx2.php?url=';
         break;
     default:
         if( strpos( $url, 'pptv.com')) { $pass = 2; $jxurl = 'https://api.daidaitv.com/index/?url=';}
         elseif( strpos( $url, 'qq.com')) { $pass = 2; $jxurl = 'https://api.daidaitv.com/index/?url=';}
         else { $pass = 0; $jxurl = 'http://000o.cc/jx/yk.php?url=';}
    }
? >
<!DOCTYPE html >
< html lang= "en" >
< head >
< meta charset= "UTF-8" >
< title >自动用解析 </ title >
< link type= "text/css" rel= "stylesheet" href= "/jscss4/v.css?v=20170303" >
< base target= "_blank" />
<?php if( strpos( $url, 'baofeng.com')) echo '<script>window.parent.location.href="'. $url. '";</script>'; ? >
</ head >
< body >
<!--主框架-->
< iframe id= "rtgrhth_play_box" height= '100%' width= '100%' src= ' <? echo $jxurl. $url; ? > ' frameborder= 0 border= "0" allowfullscreen= "true" ></ iframe >
< div id= "tongdao" >
< a class= " <? if( $pass== 0) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=0 & url= <?= $url ? > " >本站 </ a >
< a class= " <? if( $pass== 1) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=1 & url= <?= $url ? > " >一线 </ a >
< a class= " <? if( $pass== 2) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=2 & url= <?= $url ? > " >二线 </ a >
< a class= " <? if( $pass== 3) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=3 & url= <?= $url ? > " >三线 </ a >
     < a class= " <? if( $pass== 4) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=4 & url= <?= $url ? > " >四线 </ a >
     < a class= " <? if( $pass== 5) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=5 & url= <?= $url ? > " >五线 </ a >
     < a class= " <? if( $pass== 6) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=6 & url= <?= $url ? > " >六线 </ a >
     < a class= " <? if( $pass== 7) echo 'cur'; ? > " target= "_self" href= "vip.php?pass=7 & url= <?= $url ? > " >七线 </ a >
</ div >
<!--主框架-->
< script src= "/Public/jquery/1.11.3/jquery.min.js" ></ script >
< script src= "/jscss4/vip.js?v=20170303" ></ script >
< script >
$( function(){
var h = $( window). height();
$( 'body'). height( h);
$( window). resize( function(){
var h = $( window). height();
$( 'body'). height( h);
})
});
< / script >
</ body >
</ html >

发现vip.php中有8种解析接口,几乎支持目前主流的所有视频。通过switch函数根据选择的线路选择相应的解析接口对url进行解析播放。

2.3 其他样式资源文件jscss4 

包含2张图片,1个js文件,3个css层叠样式文件

3 参考文献你似乎来到了没有知识存在的荒原 - 知乎

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/156380
推荐阅读
相关标签
  

闽ICP备14008679号