美文网首页
抓取解析接口的视频真实地址(二)

抓取解析接口的视频真实地址(二)

作者: yesia | 来源:发表于2019-05-15 11:07 被阅读0次

1.因为解析接口只允许iframe框架调用

2.写了个html调用解析接口

<div id="a1" class="content" style="display:none;"></div>


<script type="text/javascript">


var str_href=window.location.href
var other_l =str_href.substring(str_href.indexOf('=')+1);
urlplay('解析接口地址'+other_l);
function urlplay(url){
       
        $("#a1").html('<iframe  width="100%" height="100%" src="' + url+'" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="true" id="yesia" ></iframe>');
        // setTimeout(function(){
        //     iframe = document.getElementsByTagName('iframe')[0];
        //     console.log(iframe);
        // },1000)
        
 }

相关文章

网友评论

      本文标题:抓取解析接口的视频真实地址(二)

      本文链接:https://www.haomeiwen.com/subject/rrauaqtx.html