<?php 
$url=empty($_GET['url'])?'':urldecode($_GET['url']);
$t=empty($_GET['t'])?'':urldecode($_GET['t']);
$live=empty($_GET['live'])?'':$_GET['live'];
$width=empty($_GET['width'])?'600':$_GET['width'];
$height=empty($_GET['height'])?'400':$_GET['height'];
if(!empty($t))$url.='&t='.$t;
if(empty($url))exit('?url=');?>
  
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge" >
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
<title>Aliplayer在线播放rtmp</title>
<link rel="stylesheet" href="//g.alicdn.com/de/prismplayer/2.7.2/skins/default/aliplayer-min.css" />
<script type="text/javascript" charset="utf-8" src="//g.alicdn.com/de/prismplayer/2.7.2/aliplayer-min.js"></script>
</head>
<body>
<div class="prism-player" id="player-con"></div>
<script>
var player = new Aliplayer({
  "id": "player-con",
  "source": "<?php echo $url;?>",
  "width": "100%",
  "height": "500px",
  "autoplay": true,
  "isLive": true,
  "rePlay": false,
  "playsinline": true,
  "preload": true,
  "controlBarVisibility": "hover",
  "useH5Prism": true
}, function (player) {
    console.log("播放器创建了。");
  }
);
</script>
</body>