winlin

refine the publish url.

@@ -34,7 +34,6 @@ @@ -34,7 +34,6 @@
34 34
35 // for publish, we use randome stream name. 35 // for publish, we use randome stream name.
36 $("#txt_url").val($("#txt_url").val() + "." + new Date().getTime()); 36 $("#txt_url").val($("#txt_url").val() + "." + new Date().getTime());
37 - update_play_url();  
38 37
39 // start the publisher. 38 // start the publisher.
40 srs_publisher = new SrsPublisher("local_publisher", 430, 185); 39 srs_publisher = new SrsPublisher("local_publisher", 430, 185);
@@ -148,6 +147,7 @@ @@ -148,6 +147,7 @@
148 if ($("#btn_publish").text() == "停止发布") { 147 if ($("#btn_publish").text() == "停止发布") {
149 srs_publisher.stop(); 148 srs_publisher.stop();
150 $("#btn_publish").text("发布视频"); 149 $("#btn_publish").text("发布视频");
  150 + $("#txt_play_url").text("请发布视频").attr("href", "#");
151 return; 151 return;
152 } 152 }
153 153
@@ -233,7 +233,7 @@ @@ -233,7 +233,7 @@
233 <div class="control-group"> 233 <div class="control-group">
234 <div class="form-inline"> 234 <div class="form-inline">
235 观看地址: 235 观看地址:
236 - <a id="txt_play_url" class="input-xxlarge" href="srs_player.html">srs_player.html</a> 236 + <a id="txt_play_url" class="input-xxlarge" href="#">请发布视频</a>
237 </div> 237 </div>
238 </div> 238 </div>
239 <div id="video_modal" class="modal hide fade"> 239 <div id="video_modal" class="modal hide fade">