Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
1857da8a
提交
1857da8a
authored
3月 05, 2015
作者:
Anthony Minessale
提交者:
Michael Jerris
5月 28, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-7509: mess with html5
上级
3e7c0f65
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
112 行增加
和
15 行删除
+112
-15
index.html
html5/verto/video_demo/index.html
+46
-13
verto.js
html5/verto/video_demo/verto.js
+66
-2
没有找到文件。
html5/verto/video_demo/index.html
浏览文件 @
1857da8a
...
@@ -85,17 +85,21 @@
...
@@ -85,17 +85,21 @@
</div>
</div>
<div
data-role=
"page"
id=
"page-incall"
align=
"center"
>
<div
data-role=
"page"
id=
"page-incall"
align=
"center"
>
<div
data-role=
"header"
id=
"calltitle"
class=
"pageheader"
>
<div
data-role=
"header"
id=
"calltitle"
class=
"pageheader"
>
Verto
™
IN CALL
Verto
™
IN CALL
</div>
</div>
<div
id=
"conf"
>
<div
style=
"color:black;font-family: verdana"
align=
"center"
id=
"conf_count"
></div>
<table
width=
"1000"
cellspacing=
"0"
cellpadding=
"0"
border=
"0"
align=
"center"
id=
"conf_list"
class=
"jsDataTable"
>
</table>
<div
id=
"fs"
style=
"width:100%;height:100%"
>
</div>
<div
id=
"rows"
style=
"background-color:#f9f9f9"
>
<br
clear=
all
>
<span
id=
usrinner
style=
"margin:25px"
>
<span
id=
usrctl
>
User Controls
</span>
<div
id=
usr2
>
<button
data-inline=
"true"
id=
"hold"
>
HOLD
</button>
<button
data-inline=
"true"
id=
"hold"
>
HOLD
</button>
<button
data-inline=
"true"
id=
"hupbtn"
>
End Call
</button>
<button
data-inline=
"true"
id=
"hupbtn"
>
End Call
</button>
...
@@ -106,19 +110,25 @@
...
@@ -106,19 +110,25 @@
<button
data-inline=
"true"
id=
"nosharebtn"
>
End Share
</button>
<button
data-inline=
"true"
id=
"nosharebtn"
>
End Share
</button>
</span>
</span>
<span
class=
"sharediv"
>
<span
class=
"sharediv"
>
<button
data-inline=
"true"
id=
"smallerbtn"
>
Smaller -
</button>
<button
data-inline=
"true"
id=
"smallerbtn"
>
Smaller -
</button>
<button
data-inline=
"true"
id=
"biggerbtn"
>
Bigger +
</button>
<button
data-inline=
"true"
id=
"biggerbtn"
>
Bigger +
</button>
<button
data-inline=
"true"
id=
"fullbtn"
>
Full Screen
</button>
<button
data-inline=
"true"
id=
"fullbtn"
>
Full Screen
</button>
<button
data-inline=
"true"
id=
"nofullbtn"
>
Exit Full Screen
</button>
<button
data-inline=
"true"
id=
"vmutebtn"
>
Toggle Video Mute
</button>
<button
data-inline=
"true"
id=
"vmutebtn"
>
Toggle Video Mute
</button>
</span>
</span>
<div
id=
"media"
>
<br><br>
<video
id=
"webcam"
autoplay=
"autoplay"
></video>
<div
id=
"conf"
style=
"width:100%;height:100%"
>
<div
style=
"color:black;font-family: verdana"
align=
"center"
id=
"conf_count"
></div><br>
<table
width=
"1000"
cellspacing=
"0"
cellpadding=
"0"
border=
"0"
align=
"center"
id=
"conf_list"
class=
"jsDataTable"
>
</table>
</div>
<!---conf-->
</div>
<br><br>
<div
id=
"message"
hidden=
"true"
>
<div
id=
"message"
hidden=
"true"
>
<hr
class=
"l1"
width=
"500"
/>
<hr
class=
"l1"
width=
"500"
/>
...
@@ -135,8 +145,8 @@
...
@@ -135,8 +145,8 @@
</div>
</div>
<div
id=
"conf_mod"
></div>
<div
style=
"color:blue"
id=
"conf_display"
></div>
<img
src=
"img/verto_black_web.gif"
width=
"300"
><br><br>
<img
src=
"img/verto_black_web.gif"
width=
"300"
><br><br>
...
@@ -160,6 +170,29 @@
...
@@ -160,6 +170,29 @@
<button
class=
"dtmf"
data-inline=
"true"
>
#
</button>
<button
class=
"dtmf"
data-inline=
"true"
>
#
</button>
</div>
</div>
<br><br>
<br><br>
<div
id=
"conf_mod"
style=
"width:450px"
></div>
<div
style=
"color:blue"
id=
"conf_display"
></div>
</span>
</div>
</div>
<!-- fs -->
<video
id=
"webcam"
autoplay=
"autoplay"
style=
"width:100%;height:100%"
></video>
</div>
<!-- rows -->
<br><br>
</div>
</div>
...
...
html5/verto/video_demo/verto.js
浏览文件 @
1857da8a
...
@@ -12,7 +12,7 @@ var vid_height = 180;
...
@@ -12,7 +12,7 @@ var vid_height = 180;
var
local_vid_width
=
320
;
var
local_vid_width
=
320
;
var
local_vid_height
=
180
;
var
local_vid_height
=
180
;
var
is_full_screen
=
false
;
var
outgoingBandwidth
;
var
outgoingBandwidth
;
var
incomingBandwidth
;
var
incomingBandwidth
;
var
vqual
;
var
vqual
;
...
@@ -517,8 +517,52 @@ $("#vmutebtn").click(function() {
...
@@ -517,8 +517,52 @@ $("#vmutebtn").click(function() {
cur_call
.
dtmf
(
"*0"
);
cur_call
.
dtmf
(
"*0"
);
});
});
var
is_full
=
false
;
var
usrto
;
function
noop
()
{
return
;
}
$
(
"#nofullbtn"
).
click
(
function
()
{
if
(
document
.
webkitFullscreenEnabled
)
{
document
.
webkitExitFullscreen
();
}
else
if
(
document
.
mozFullScreenEnabled
)
{
document
.
mozExitFullScreen
();
}
});
function
on_full
(
which
)
{
is_full
=
which
;
if
(
is_full
)
{
$
(
"#rows"
).
css
(
"position"
,
"absolute"
).
css
(
"z-index"
,
"2"
);
}
else
{
$
(
"#rows"
).
css
(
"position"
,
"static"
).
css
(
"z-index"
,
"2"
);
clearTimeout
(
usrto
);
}
}
$
(
document
).
on
(
'webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange'
,
function
(
e
)
{
if
(
!
is_full
)
{
on_full
(
true
);
}
else
{
on_full
(
false
);
}
});
$
(
"#fullbtn"
).
click
(
function
()
{
$
(
"#fullbtn"
).
click
(
function
()
{
full_screen
(
"webcam"
);
full_screen
(
"fs"
);
// $("#mod1").css("position", "absolute").css("z-index", "2");
});
});
$
(
"#biggerbtn"
).
click
(
function
()
{
$
(
"#biggerbtn"
).
click
(
function
()
{
...
@@ -1137,6 +1181,26 @@ $(document).ready(function() {
...
@@ -1137,6 +1181,26 @@ $(document).ready(function() {
$
(
'#devices'
).
hide
();
$
(
'#devices'
).
hide
();
$
(
'#showdemo'
).
show
();
$
(
'#showdemo'
).
show
();
// $("#rows").css("position", "absolute").css("z-index", "2");
$
(
"#usrctl"
).
show
();
$
(
"#usr2"
).
hide
();
$
(
"#usrctl"
).
mouseover
(
function
()
{
$
(
"#mod2"
).
hide
();
$
(
"#usr2"
).
show
();
});
$
(
"#usr2"
).
mouseover
(
function
()
{
$
(
"#mod2"
).
hide
();
clearTimeout
(
usrto
);
});
$
(
"#usr2"
).
mouseleave
(
function
()
{
usrto
=
setTimeout
(
function
()
{
$
(
"#usr2"
).
hide
();
},
2000
);
});
init
();
init
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论