Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
cc00d1d0
提交
cc00d1d0
authored
9月 30, 2015
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-8245 #resolve [Video Resolutions available in "Video Quality" drop down are not always correct]
上级
33ffdb34
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
27 行删除
+25
-27
jquery.verto.js
html5/verto/js/src/jquery.verto.js
+0
-3
vertoService.js
...to_communicator/src/vertoService/services/vertoService.js
+25
-24
verto-min.js
html5/verto/video_demo/js/verto-min.js
+0
-0
没有找到文件。
html5/verto/js/src/jquery.verto.js
浏览文件 @
cc00d1d0
...
...
@@ -85,9 +85,6 @@
if
(
verto
.
options
.
deviceParams
.
useCamera
)
{
$
.
FSRTC
.
getValidRes
(
verto
.
options
.
deviceParams
.
useCamera
,
verto
.
options
.
deviceParams
.
onResCheck
);
}
else
{
verto
.
options
.
deviceParams
.
useCamera
=
"any"
;
$
.
FSRTC
.
getValidRes
(
undefined
,
undefined
);
}
if
(
!
verto
.
options
.
deviceParams
.
useMic
)
{
...
...
html5/verto/verto_communicator/src/vertoService/services/vertoService.js
浏览文件 @
cc00d1d0
'use strict'
;
/* Controllers */
var
videoQuality
=
[{
var
videoQuality
=
[];
var
videoQuality
Source
=
[{
id
:
'qvga'
,
label
:
'QVGA 320x240'
,
width
:
320
,
...
...
@@ -158,28 +158,28 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
function
updateResolutions
(
supportedResolutions
)
{
console
.
debug
(
'Attempting to sync supported and available resolutions'
);
var
removed
=
0
;
//var removed = 0;
console
.
debug
(
"VQ length: "
+
videoQualitySource
.
length
);
console
.
debug
(
supportedResolutions
);
angular
.
forEach
(
videoQuality
,
function
(
resolution
,
id
)
{
var
supported
=
false
;
angular
.
forEach
(
videoQualitySource
,
function
(
resolution
,
id
)
{
angular
.
forEach
(
supportedResolutions
,
function
(
res
)
{
var
width
=
res
[
0
];
var
height
=
res
[
1
];
if
(
resolution
.
width
==
width
&&
resolution
.
height
==
height
)
{
supported
=
true
;
videoQuality
.
push
(
resolution
)
;
}
});
if
(
!
supported
)
{
delete
videoQuality
[
id
];
++
removed
;
}
});
videoQuality
.
length
=
videoQuality
.
length
-
removed
;
// videoQuality.length = videoQuality.length - removed;
console
.
debug
(
"VQ length 2: "
+
videoQuality
.
length
);
data
.
videoQuality
=
videoQuality
;
console
.
debug
(
videoQuality
);
data
.
vidQual
=
(
videoQuality
.
length
>
0
)
?
videoQuality
[
videoQuality
.
length
-
1
].
id
:
null
;
console
.
debug
(
data
.
vidQual
);
return
videoQuality
;
};
...
...
@@ -553,6 +553,8 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
if
(
data
.
instance
&&
!
data
.
instance
.
rpcClient
.
socketReady
())
{
clearTimeout
(
data
.
instance
.
rpcClient
.
to
);
data
.
instance
.
logout
();
data
.
instance
.
login
();
return
;
};
data
.
instance
=
new
jQuery
.
verto
({
login
:
data
.
login
+
'@'
+
data
.
hostname
,
...
...
@@ -562,25 +564,24 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
ringFile
:
"sounds/bell_ring2.wav"
,
// TODO: Add options for this.
audioParams
:
{
googEchoCancellation
:
storage
.
data
.
googEchoCancellation
||
fals
e
,
googNoiseSuppression
:
storage
.
data
.
googNoiseSuppression
||
fals
e
,
googHighpassFilter
:
storage
.
data
.
googHighpassFilter
||
fals
e
googEchoCancellation
:
storage
.
data
.
googEchoCancellation
||
tru
e
,
googNoiseSuppression
:
storage
.
data
.
googNoiseSuppression
||
tru
e
,
googHighpassFilter
:
storage
.
data
.
googHighpassFilter
||
tru
e
},
iceServers
:
storage
.
data
.
useSTUN
},
callbacks
);
data
.
instance
.
deviceParams
({
useCamera
:
storage
.
data
.
selectedVideo
,
useMic
:
storage
.
data
.
selectedAudio
,
onResCheck
:
that
.
refreshVideoResolution
});
data
.
instance
.
deviceParams
({
useCamera
:
storage
.
data
.
selectedVideo
,
useMic
:
storage
.
data
.
selectedAudio
,
onResCheck
:
that
.
refreshVideoResolution
});
}
if
(
data
.
mediaPerm
)
{
if
(
data
.
mediaPerm
)
{
ourBootstrap
();
}
else
{
$
.
verto
.
init
({
skipDeviceCheck
:
true
},
ourBootstrap
);
$
.
FSRTC
.
checkPerms
(
ourBootstrap
,
true
,
true
);
}
},
...
...
html5/verto/video_demo/js/verto-min.js
浏览文件 @
cc00d1d0
This diff was suppressed by a .gitattributes entry.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论