Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
880fb810
提交
880fb810
authored
8月 18, 2015
作者:
Stefan Yohansson
提交者:
root
8月 19, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-7977 - [Verto Communicator] Fixing default resolution and cleaning code
上级
3e785654
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
449 行增加
和
249 行删除
+449
-249
jquery.FSRTC.js
html5/verto/js/src/jquery.FSRTC.js
+5
-1
app.js
html5/verto/verto_communicator/js/app.js
+26
-24
controllers.js
html5/verto/verto_communicator/js/controllers.js
+190
-134
directives.js
html5/verto/verto_communicator/js/directives.js
+6
-6
storage-service.js
html5/verto/verto_communicator/js/storage-service.js
+31
-29
verto-service.js
html5/verto/verto_communicator/js/verto-service.js
+191
-55
没有找到文件。
html5/verto/js/src/jquery.FSRTC.js
浏览文件 @
880fb810
...
@@ -1040,7 +1040,11 @@ var iceTimer;
...
@@ -1040,7 +1040,11 @@ var iceTimer;
var
checkRes
=
function
(
cam
,
func
)
{
var
checkRes
=
function
(
cam
,
func
)
{
if
(
resI
>=
resList
.
length
)
{
if
(
resI
>=
resList
.
length
)
{
if
(
func
)
return
func
();
var
res
=
{
'validRes'
:
$
.
FSRTC
.
validRes
,
'bestResSupported'
:
$
.
FSRTC
.
bestResSupported
()
};
if
(
func
)
return
func
(
res
);
return
;
return
;
}
}
...
...
html5/verto/verto_communicator/js/app.js
浏览文件 @
880fb810
...
@@ -20,17 +20,17 @@ var vertoApp = angular.module('vertoApp', [
...
@@ -20,17 +20,17 @@ var vertoApp = angular.module('vertoApp', [
vertoApp
.
config
([
'$routeProvider'
,
vertoApp
.
config
([
'$routeProvider'
,
function
(
$routeProvider
)
{
function
(
$routeProvider
)
{
$routeProvider
.
$routeProvider
.
when
(
'/login'
,
{
when
(
'/login'
,
{
title
:
'Login'
,
title
:
'Login'
,
templateUrl
:
'partials/login.html'
,
templateUrl
:
'partials/login.html'
,
controller
:
'LoginController'
controller
:
'LoginController'
}).
}).
when
(
'/dialpad'
,
{
when
(
'/dialpad'
,
{
title
:
'Dialpad'
,
title
:
'Dialpad'
,
templateUrl
:
'partials/dialpad.html'
,
templateUrl
:
'partials/dialpad.html'
,
controller
:
'DialPadController'
controller
:
'DialPadController'
}).
}).
when
(
'/incall'
,
{
when
(
'/incall'
,
{
title
:
'In a Call'
,
title
:
'In a Call'
,
templateUrl
:
'partials/incall.html'
,
templateUrl
:
'partials/incall.html'
,
controller
:
'InCallController'
controller
:
'InCallController'
...
@@ -40,25 +40,26 @@ vertoApp.config(['$routeProvider',
...
@@ -40,25 +40,26 @@ vertoApp.config(['$routeProvider',
templateUrl: 'partials/contributors.html',
templateUrl: 'partials/contributors.html',
controller: 'ContributorsController',
controller: 'ContributorsController',
}).*/
}).*/
when
(
'/browser-upgrade'
,
{
when
(
'/browser-upgrade'
,
{
title
:
''
,
title
:
''
,
templateUrl
:
'partials/browser_upgrade.html'
,
templateUrl
:
'partials/browser_upgrade.html'
,
controller
:
'BrowserUpgradeController'
controller
:
'BrowserUpgradeController'
}).
}).
otherwise
({
otherwise
({
redirectTo
:
'/login'
redirectTo
:
'/login'
});
});
}]);
}
]);
vertoApp
.
run
([
'$rootScope'
,
'$location'
,
'toastr'
,
'prompt'
,
vertoApp
.
run
([
'$rootScope'
,
'$location'
,
'toastr'
,
'prompt'
,
function
(
$rootScope
,
$location
,
toastr
,
prompt
)
{
function
(
$rootScope
,
$location
,
toastr
,
prompt
)
{
$rootScope
.
$on
(
'$routeChangeSuccess'
,
function
(
event
,
current
,
previous
)
{
$rootScope
.
$on
(
'$routeChangeSuccess'
,
function
(
event
,
current
,
previous
)
{
$rootScope
.
title
=
current
.
$$route
.
title
;
$rootScope
.
title
=
current
.
$$route
.
title
;
});
});
$rootScope
.
safeProtocol
=
false
;
$rootScope
.
safeProtocol
=
false
;
if
(
window
.
location
.
protocol
==
'https:'
)
{
if
(
window
.
location
.
protocol
==
'https:'
)
{
$rootScope
.
safeProtocol
=
true
;
$rootScope
.
safeProtocol
=
true
;
}
}
...
@@ -79,7 +80,7 @@ vertoApp.run(['$rootScope', '$location', 'toastr', 'prompt',
...
@@ -79,7 +80,7 @@ vertoApp.run(['$rootScope', '$location', 'toastr', 'prompt',
message
:
message
,
message
:
message
,
input
:
true
,
input
:
true
,
label
:
label
label
:
label
}).
then
(
function
(
ret
)
{
}).
then
(
function
(
ret
)
{
if
(
angular
.
isFunction
(
callback
))
{
if
(
angular
.
isFunction
(
callback
))
{
callback
(
ret
);
callback
(
ret
);
}
}
...
@@ -89,4 +90,5 @@ vertoApp.run(['$rootScope', '$location', 'toastr', 'prompt',
...
@@ -89,4 +90,5 @@ vertoApp.run(['$rootScope', '$location', 'toastr', 'prompt',
};
};
}]);
}
]);
html5/verto/verto_communicator/js/controllers.js
浏览文件 @
880fb810
差异被折叠。
点击展开。
html5/verto/verto_communicator/js/directives.js
浏览文件 @
880fb810
...
@@ -18,7 +18,7 @@ vertoDirectives.directive('videoTag',
...
@@ -18,7 +18,7 @@ vertoDirectives.directive('videoTag',
// Moving the video tag to the new place inside the incall page.
// Moving the video tag to the new place inside the incall page.
console
.
log
(
'Moving the video to element.'
);
console
.
log
(
'Moving the video to element.'
);
jQuery
(
'video'
).
removeClass
(
'hide'
).
appendTo
(
element
);
jQuery
(
'video'
).
removeClass
(
'hide'
).
appendTo
(
element
);
jQuery
(
'video'
).
css
(
'display'
,
'block'
);
jQuery
(
'video'
).
css
(
'display'
,
'block'
);
scope
.
callActive
();
scope
.
callActive
();
element
.
on
(
'$destroy'
,
function
()
{
element
.
on
(
'$destroy'
,
function
()
{
...
@@ -62,19 +62,19 @@ vertoDirectives.directive('showControls',
...
@@ -62,19 +62,19 @@ vertoDirectives.directive('showControls',
jQuery
(
'.video-footer'
).
fadeIn
(
'slow'
);
jQuery
(
'.video-footer'
).
fadeIn
(
'slow'
);
jQuery
(
'.video-hover-buttons'
).
fadeIn
(
'slow'
);
jQuery
(
'.video-hover-buttons'
).
fadeIn
(
'slow'
);
element
.
parent
().
bind
(
'mousemove'
,
function
()
{
element
.
parent
().
bind
(
'mousemove'
,
function
()
{
if
(
Fullscreen
.
isEnabled
())
{
if
(
Fullscreen
.
isEnabled
())
{
clearTimeout
(
i
);
clearTimeout
(
i
);
jQuery
(
'.video-footer'
).
fadeIn
(
'slow'
);
jQuery
(
'.video-footer'
).
fadeIn
(
'slow'
);
jQuery
(
'.video-hover-buttons'
).
fadeIn
(
500
);
jQuery
(
'.video-hover-buttons'
).
fadeIn
(
500
);
i
=
setTimeout
(
function
()
{
i
=
setTimeout
(
function
()
{
if
(
Fullscreen
.
isEnabled
())
{
if
(
Fullscreen
.
isEnabled
())
{
jQuery
(
'.video-footer'
).
fadeOut
(
'slow'
);
jQuery
(
'.video-footer'
).
fadeOut
(
'slow'
);
jQuery
(
'.video-hover-buttons'
).
fadeOut
(
500
);
jQuery
(
'.video-hover-buttons'
).
fadeOut
(
500
);
}
}
},
3000
);
},
3000
);
}
}
});
});
element
.
parent
().
bind
(
'mouseleave'
,
function
()
{
element
.
parent
().
bind
(
'mouseleave'
,
function
()
{
jQuery
(
'.video-footer'
).
fadeIn
();
jQuery
(
'.video-footer'
).
fadeIn
();
jQuery
(
'.video-hover-buttons'
).
fadeIn
();
jQuery
(
'.video-hover-buttons'
).
fadeIn
();
});
});
...
@@ -84,4 +84,4 @@ vertoDirectives.directive('showControls',
...
@@ -84,4 +84,4 @@ vertoDirectives.directive('showControls',
return
{
return
{
link
:
link
link
:
link
};
};
});
});
html5/verto/verto_communicator/js/storage-service.js
浏览文件 @
880fb810
...
@@ -2,34 +2,36 @@
...
@@ -2,34 +2,36 @@
var
storageService
=
angular
.
module
(
'storageService'
,
[
'ngStorage'
]);
var
storageService
=
angular
.
module
(
'storageService'
,
[
'ngStorage'
]);
storageService
.
service
(
'storage'
,
[
'$rootScope'
,
'$localStorage'
,
'verto'
,
function
(
$rootScope
,
$localStorage
,
verto
)
{
storageService
.
service
(
'storage'
,
[
'$rootScope'
,
'$localStorage'
,
'verto'
,
var
data
=
$localStorage
;
function
(
$rootScope
,
$localStorage
,
verto
)
{
var
data
=
$localStorage
;
data
.
$default
({
data
.
$default
({
ui_connected
:
false
,
ui_connected
:
false
,
ws_connected
:
false
,
ws_connected
:
false
,
cur_call
:
0
,
cur_call
:
0
,
called_number
:
''
,
called_number
:
''
,
useVideo
:
true
,
useVideo
:
true
,
call_history
:
[],
call_history
:
[],
call_start
:
false
,
call_start
:
false
,
name
:
''
,
name
:
''
,
email
:
''
,
email
:
''
,
login
:
''
,
login
:
''
,
password
:
''
,
password
:
''
,
userStatus
:
'disconnected'
,
userStatus
:
'disconnected'
,
mutedVideo
:
false
,
mutedVideo
:
false
,
mutedMic
:
false
,
mutedMic
:
false
,
verto
:
verto
verto
:
angular
.
toJson
(
verto
)
});
});
return
{
return
{
data
:
data
,
data
:
data
,
reset
:
function
()
{
reset
:
function
()
{
data
.
ui_connected
=
false
;
data
.
ui_connected
=
false
;
data
.
ws_connected
=
false
;
data
.
ws_connected
=
false
;
data
.
cur_call
=
0
;
data
.
cur_call
=
0
;
data
.
userStatus
=
'disconnected'
;
data
.
userStatus
=
'disconnected'
;
},
},
};
};
}]);
}
]);
html5/verto/verto_communicator/js/verto-service.js
浏览文件 @
880fb810
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论