提交 cb2588d8 authored 作者: Italo Rossi's avatar Italo Rossi

FS-8300 [verto_communicator] Fixing reload bug, no need to do two times now.

上级 85f9244d
......@@ -528,8 +528,10 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
cleanShareCall(that);
} else {
stopConference();
if (!that.reloaded) {
cleanCall();
}
}
break;
default:
console.warn('Got a not implemented state:', d);
......@@ -571,6 +573,13 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
iceServers: storage.data.useSTUN
}, callbacks);
// We need to know when user reloaded page and not react to
// verto events in order to not stop the reload and redirect user back
// to the dialpad.
that.reloaded = false;
jQuery.verto.unloadJobs.push(function() {
that.reloaded = true;
});
data.instance.deviceParams({
useCamera: storage.data.selectedVideo,
useMic: storage.data.selectedAudio,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论