天津东丽电视台接口及代码

天津东丽电视台接口及js代码
接口:https://www.app2020.tjrmtzx.com/ … 00000_cff29e99.json
js代码
<script src="https://cdnjs.loli.net/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
url = 'https://www.app2020.tjrmtzx.com/dlrmtzx/cms_mob/v200/cms_chan/news/000008/005/002/001/000/000008005002001000000_cff29e99.json';
$.get(url,
  function (data) {
    m3u8 = data.result.data[0].newsList[0].videos[0].url;
    location.href = m3u8;
},'json');
</script>

php

<?php
$data = json_decode(file_get_contents("http://www.app2020.tjrmtzx.com/dlrmtzx/cms_mob/v200/cms_chan/news/000008/005/002/001/000/000008005002001000000_cff29e99.json"))->result->data;
$playurl = $data[0]->newsList;
$playurl = $playurl[0]->videos;
$playurl = $playurl[0]->url;
header('Location:'.$playurl);
?>
© 版权声明
THE END
喜欢就支持以下吧
点赞0
分享
评论 抢沙发

请登录后发表评论