winlin

jump nginx index to api-server, for ie crossdomain.

  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 + <title>SRS</title>
  5 + <meta charset="utf-8">
  6 + <script type="text/javascript" src="players/js/jquery-1.10.2.min.js"></script>
  7 + <script type="text/javascript" src="players/js/srs.page.js"></script>
  8 + <script type="text/javascript" src="players/js/srs.utility.js"></script>
  9 +</head>
  10 +<body>
  11 + <script type="text/javascript">
  12 + var query = parse_query_string();
  13 + var url = window.location.protocol + "//" + query.hostname + ":" + srs_get_api_server_port() + "/index.html" + window.location.search;
  14 + document.write("请确认api-server已经开启,跳转到api-server的页面(解决IE跨域问题)<br/>");
  15 + document.write("正在跳转,若您的浏览器没有跳转,请点击: <a href='" + url + "'>" + url + "</a>");
  16 +
  17 + setTimeout(function(){
  18 + window.location.href = url;
  19 + }, 3000);
  20 + </script>
  21 +</body>