winlin

refine code for link generation from rtmp url.

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