胡斌

add start_record,stop_record

正在显示 1 个修改的文件 包含 17 行增加0 行删除
@@ -402,6 +402,18 @@ a:active { @@ -402,6 +402,18 @@ a:active {
402 cmd.data = new TextEncoder("utf-8").encode(sourceSel.options[index].text); 402 cmd.data = new TextEncoder("utf-8").encode(sourceSel.options[index].text);
403 cmd.data_len = cmd.data.length; 403 cmd.data_len = cmd.data.length;
404 } 404 }
  405 + else if(obj.id == "start_record"){
  406 + cmd.type = 48;
  407 + var param = document.getElementById("start_record_input");
  408 + cmd.data = new TextEncoder("utf-8").encode(param.value);
  409 + cmd.data_len = cmd.data.length;
  410 + }
  411 + else if(obj.id == "stop_record"){
  412 + cmd.type = 49;
  413 + var param = document.getElementById("start_record_input");
  414 + cmd.data = new TextEncoder("utf-8").encode(param.value);
  415 + cmd.data_len = cmd.data.length;
  416 + }
405 else if(obj.id == "start_push"){ 417 else if(obj.id == "start_push"){
406 cmd.type = 50; 418 cmd.type = 50;
407 var param = document.getElementById("start_push_input"); 419 var param = document.getElementById("start_push_input");
@@ -706,6 +718,11 @@ a:active { @@ -706,6 +718,11 @@ a:active {
706 <td colspan="3"><input id="start_push_input" width="800"/></td> 718 <td colspan="3"><input id="start_push_input" width="800"/></td>
707 <td colspan="3"><button type="button" id="stop_push" onclick="javascript:onTestClick(this);">stop_push</button></td> 719 <td colspan="3"><button type="button" id="stop_push" onclick="javascript:onTestClick(this);">stop_push</button></td>
708 </tr> 720 </tr>
  721 + <td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
  722 + <td colspan="3"><button type="button" id="start_record" onclick="javascript:onTestClick(this);">start_record</button></td>
  723 + <td colspan="3"><input id="start_record_input" width="800"/></td>
  724 + <td colspan="3"><button type="button" id="stop_record" onclick="javascript:onTestClick(this);">stop_record</button></td>
  725 + </tr>
709 <tr> 726 <tr>
710 <td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td> 727 <td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
711 <td colspan="3"><button type="button" id="get_videoparam" onclick="javascript:onTestClick(this);">get_videoparam</button></td> 728 <td colspan="3"><button type="button" id="get_videoparam" onclick="javascript:onTestClick(this);">get_videoparam</button></td>