Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
liveAssistant_web_demo
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
2017-05-02 17:20:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a0bb830b53be9e7fc47da9e50ee9da7a8ac89d15
a0bb830b
1 parent
853c1a74
add start_record,stop_record
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
17 行增加
和
0 行删除
demo.html
demo.html
查看文件 @
a0bb830
...
...
@@ -402,6 +402,18 @@ a:active {
cmd
.
data
=
new
TextEncoder
(
"utf-8"
).
encode
(
sourceSel
.
options
[
index
].
text
);
cmd
.
data_len
=
cmd
.
data
.
length
;
}
else
if
(
obj
.
id
==
"start_record"
){
cmd
.
type
=
48
;
var
param
=
document
.
getElementById
(
"start_record_input"
);
cmd
.
data
=
new
TextEncoder
(
"utf-8"
).
encode
(
param
.
value
);
cmd
.
data_len
=
cmd
.
data
.
length
;
}
else
if
(
obj
.
id
==
"stop_record"
){
cmd
.
type
=
49
;
var
param
=
document
.
getElementById
(
"start_record_input"
);
cmd
.
data
=
new
TextEncoder
(
"utf-8"
).
encode
(
param
.
value
);
cmd
.
data_len
=
cmd
.
data
.
length
;
}
else
if
(
obj
.
id
==
"start_push"
){
cmd
.
type
=
50
;
var
param
=
document
.
getElementById
(
"start_push_input"
);
...
...
@@ -706,6 +718,11 @@ a:active {
<td
colspan=
"3"
><input
id=
"start_push_input"
width=
"800"
/></td>
<td
colspan=
"3"
><button
type=
"button"
id=
"stop_push"
onclick=
"javascript:onTestClick(this);"
>
stop_push
</button></td>
</tr>
<td
width=
"35"
colspan=
"2"
><img
src=
"images/spacer.gif"
width=
"20"
height=
"10"
/></td>
<td
colspan=
"3"
><button
type=
"button"
id=
"start_record"
onclick=
"javascript:onTestClick(this);"
>
start_record
</button></td>
<td
colspan=
"3"
><input
id=
"start_record_input"
width=
"800"
/></td>
<td
colspan=
"3"
><button
type=
"button"
id=
"stop_record"
onclick=
"javascript:onTestClick(this);"
>
stop_record
</button></td>
</tr>
<tr>
<td
width=
"35"
colspan=
"2"
><img
src=
"images/spacer.gif"
width=
"20"
height=
"10"
/></td>
<td
colspan=
"3"
><button
type=
"button"
id=
"get_videoparam"
onclick=
"javascript:onTestClick(this);"
>
get_videoparam
</button></td>
...
...
请
注册
或
登录
后发表评论