1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-24 15:04:20 +00:00
srs/trunk/research/api-server/static-dir/index.html

58 lines
2.1 KiB
HTML
Raw Normal View History

2021-04-24 11:07:37 +00:00
2013-12-26 01:02:16 +00:00
<html>
<head>
2021-04-24 11:07:37 +00:00
<title>SRS</title>
2013-12-26 01:02:16 +00:00
<meta charset="utf-8">
2022-01-12 14:03:46 +00:00
<style>
.span6 {
width: 480px;
}
.code {
background-color: rgb(246 248 250);
padding: 8px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
border-radius: 6px;
word-break: normal;
word-wrap: normal;
box-sizing: border-box;
display: block;
white-space: pre;
}
</style>
2013-12-26 01:02:16 +00:00
</head>
<body>
2022-01-12 14:03:46 +00:00
<div>
<h3><a href="https://github.com/ossrs/srs">SRS</a> works!</h3>
<p>
Click <a id="en" href="#">here</a> to enter SRS console.<br/>
点击进入<a id="cn" href="#">SRS控制台</a>
</p>
<p>
Publish stream by <a href="https://ffmpeg.org/download.html">FFmpeg</a> or <a href="https://obsproject.com/download">OBS</a>:<br/>
请使用工具<a href="https://ffmpeg.org/download.html">FFmpeg</a>或者<a href="https://obsproject.com/download">OBS</a>推流到下面地址:
<pre id="url" class="code span6"></pre>
</p>
<p>
Click <a href="players/?autostart=true">here</a> to start SRS player.<br/>
点击进入<a href="players/?autostart=true">SRS播放器</a>
</p>
<p><a href="https://github.com/ossrs/srs">SRS Team &copy; 2022</a></p>
</div>
<script type="text/javascript">
// Build RTMP url.
const rtmp_url = `rtmp://${window.location.hostname}/live/livestream`;
document.getElementById('url').innerText = rtmp_url;
// The prefix for default website.
const prefix = `${window.location.protocol}//${window.location.host}`;
// If not 8080, user should proxy to the default port.
const query = window.location.port === 8080 ? `?port=1985` : '';
const enUrl = `${prefix}/console/en_index.html#/summaries${query}`;
const cnUrl = `${prefix}/console/ng_index.html#/summaries${query}`;
document.getElementById("en").setAttribute('href', enUrl);
document.getElementById("cn").setAttribute('href', cnUrl);
</script>
2013-12-26 01:02:16 +00:00
</body>