<?php if (isset($_SERVER['HTTPS'])) { header("location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);exit();} ?>
<?php /*顯示原始碼*/ $file=__FILE__; require("src.php"); ?>
<head>
<meta charset="UTF-8" />
<title>台灣新聞 Taiwan News</title>
</head>
<style type="text/css">
.video-container {
border: 0px;
width: 33.33%;
float: left;
position: relative;
padding-bottom: 19%;
overflow: hidden;
}
.video-container iframe, .video-container object, .video-container embed , .video-container div{
position: absolute;
top: 0;left: 0;
width: 100%;
height: 100%;
}
.video-container video{
position: absolute;
top: 0;left: 0;
width: 100%;
height: 100%;
}
</style>
<body>
<?php
//抓 三立 iNews 當下的直播url
$tv_iNews=file_get_contents("https://www.youtube.com/channel/UCoNYj9OFHZn3ACmmeRCPwbA");
$arr=preg_grep("/c4-live-promo/", explode("\n", $tv_iNews));
$tv_iNews=array_pop(array_reverse($arr));
$iNews=preg_replace("/.*\"\/watch\?v=([^\"]*)\".*/", "$1", $tv_iNews);
//echo "$iNews<br>";
$tv_CTV=file_get_contents("https://www.youtube.com/channel/UCmH4q-YjeazayYCVHHkGAMA");
$arr=preg_grep("/c4-live-promo/", explode("\n", $tv_CTV));
$tv_CTV=array_pop(array_reverse($arr));
$tv_CTV=preg_replace("/.*\"\/watch\?v=([^\"]*)\".*/", "$1", $tv_CTV);
//echo "$tv_CTV<br>";
$tv_FTV=file_get_contents("https://www.youtube.com/channel/UClIfopQZlkkSpM1VgCFLRJA");
$arr=preg_grep("/c4-live-promo/", explode("\n", $tv_FTV));
$tv_FTV=array_pop(array_reverse($arr));
$tv_FTV=preg_replace("/.*\"\/watch\?v=([^\"]*)\".*/", "$1", $tv_FTV);
//echo "$tv_FTV<br>";
//c4-live-promo
//GfjbZ-SuFDk
?>
<div class="video-container"><iframe src="https://www.youtube.com/embed/4ZVUmEUFwaY" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/wUPPkSANpyo" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/<?=$tv_FTV?>" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/TL8mmew3jb8" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/<?=$iNews?>" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/RkgHSqdMCCI" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/<?=$tv_CTV?>" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/iowkbnRE5UY" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/zjGR32QyTkQ" frameborder="0" allowfullscreen></iframe></div>
<div class="video-container" id="one">
<video controls><source src="http://m.nexttv.com.tw/mbr2.m3u8" type="application/x-mpegURL"></video>
</div>
<div class="video-container"><iframe src="https://www.youtube.com/embed/yk2CUjbyyQY" frameborder="0" allowfullscreen></iframe></div>
<?php /*
<div class="video-container"><object type="application/x-shockwave-flash" data="http://www.ntdtv.com.tw/staticelement/tv/player.swf"
width="630" height="354" bgcolor="#000000" id="player3" name="player3" tabindex="0">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="seamlesstabbing" value="true">
<param name="wmode" value="opaque">
<param name="flashvars" value="netstreambasepath=http%3A%2F%2Fap.ntdtv.com%2Flive&id=player3&autostart=false&screencolor=000000&file=http://wowza4.nexttv.com.tw/liveedge/eratv3/chunklist.m3u8&provider=http%3A%2F%2Fwww.ntdtv.com%2Fxtr%2Flive%2FadaptiveProvider1.swf&controlbar.position=bottom&controlbar.idlehide=false"></object>
</div>*/
?>
<script>
if(document.createElement('video').canPlayType('application/vnd.apple.mpegURL')!="maybe"){
document.getElementById("one").innerHTML='<object type="application/x-shockwave-flash" data="http://support.ooyala.mx/player/bitdashplayer.swf"\
id="bitdash-video-player" name="bitdash-video-player" width="630" height="354">\
<param name="allowfullscreen" value="true">\
<param name="allowscriptaccess" value="always">\
<param name="wmode" value="transparent">\
<param name="scale" value="exactfit">\
<param name="quality" value="high">\
<param name="bgcolor" value="#000000">\
<param name="flashvars" value="autoPlay=false&src=http://wowza4.nexttv.com.tw/liveedge/eratv4/chunklist.m3u8&inputType=hls&apiCallback=bit234296723268">\
</object>';
}
</script>
</body>
台灣新聞 Taiwan News