winlin

refine code for link generation from rtmp url.

... ... @@ -213,7 +213,7 @@ function parse_query_string(){
function parse_rtmp_url(rtmp_url) {
// @see: http://stackoverflow.com/questions/10469575/how-to-use-location-object-to-parse-url-without-redirecting-the-page-in-javascri
var a = document.createElement("a");
a.href = rtmp_url.replace("rtmp://", "http://");
a.href = rtmp_url.replace("rtmp://", "http://").replace("?", "...").replace("=", "...");
var vhost = a.hostname;
var port = (a.port == "")? "1935":a.port;
... ...
... ... @@ -97,7 +97,7 @@
<div class="control-group">
<label class="control-label" for="link_url">播放链接地址</label>
<div class="controls">
<div style="margin-top:5px;"><a href="#" id="link_url">请右键拷贝此链接地址.</a></div>
<div style="margin-top:5px;"><a href="#" id="link_url" target="_blank">请右键拷贝此链接地址.</a></div>
</div>
</div>
</div>
... ...