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
胡斌
6 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cecd343f88f9fcbe5a35b18da1b858aaf1c88877
cecd343f
1 parent
f9960bbf
more code for screen share
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
40 行增加
和
5 行删除
demo.html
demo.html
查看文件 @
cecd343
...
...
@@ -1109,7 +1109,27 @@
}
else
if
(
cmdName
==
"enter_channel"
){
cmd
.
type
=
58
;
var
param
=
"Token="
+
document
.
getElementById
(
"token"
).
value
;
var
param
=
""
;
var
appid
=
document
.
getElementById
(
"app_id"
).
value
;
if
(
appid
.
length
>
0
)
{
param
+=
" AppID="
;
param
+=
appid
;
}
var
token
=
document
.
getElementById
(
"token"
).
value
;
if
(
token
.
length
>
0
)
{
param
+=
" Token="
;
param
+=
token
;
}
var
chname
=
document
.
getElementById
(
"channel_name"
).
value
;
if
(
chname
.
length
>
0
)
{
param
+=
" Channel="
;
param
+=
chname
;
}
var
uid
=
document
.
getElementById
(
"uid"
).
value
;
if
(
uid
.
length
>
0
)
{
param
+=
" UID="
;
param
+=
uid
;
}
cmd
.
data
=
utf16to8
(
param
);
cmd
.
data_len
=
cmd
.
data
.
length
;
}
...
...
@@ -1117,6 +1137,21 @@
cmd
.
type
=
59
;
cmd
.
data_len
=
0
;
}
else
if
(
cmdName
==
"start_screen_share"
){
cmd
.
type
=
60
;
var
param
=
""
;
var
asc_region
=
document
.
getElementById
(
"asc_region"
).
value
;
if
(
asc_region
.
length
>
0
){
param
+=
"Rect="
;
param
+=
asc_region
;
}
cmd
.
data
=
utf16to8
(
param
);
cmd
.
data_len
=
cmd
.
data
.
length
;
}
else
if
(
cmdName
==
"stop_screen_share"
){
cmd
.
type
=
61
;
cmd
.
data_len
=
0
;
}
doSendWSCmd
(
cmd
);
}
...
...
@@ -1649,14 +1684,14 @@
<tr>
<td
colspan=
"2"
>
AppID
</td>
<td
colspan=
"4"
>
<input
id=
"
AppID
"
size=
"40"
/>
<input
id=
"
app_id
"
size=
"40"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
Token
</td>
<td
colspan=
"4"
>
<input
id=
"token"
size=
"
20
0"
/>
<input
id=
"token"
size=
"
16
0"
/>
</td>
</tr>
...
...
@@ -1688,8 +1723,8 @@
</tr>
<tr>
<td
colspan=
"2"
><button
type=
"button"
id=
"start_screenshare"
onclick=
"javascript:onTestClick(this);"
>
Start Screen share
</button></td>
<td
colspan=
"2"
><button
type=
"button"
id=
"stop_screenshare"
onclick=
"javascript:onTestClick(this);"
>
Stop Screen Share
</button></td>
<td
colspan=
"2"
><button
type=
"button"
id=
"start_screen_share"
onclick=
"javascript:onTestClick(this);"
>
Start Screen share
</button></td>
<td
colspan=
"2"
><button
type=
"button"
id=
"stop_screen_share"
onclick=
"javascript:onTestClick(this);"
>
Stop Screen Share
</button></td>
</tr>
</table>
...
...
请
注册
或
登录
后发表评论