Commit 609724fb by Kim Peace

Added coview login retry process

parent 9fdd2c5a
...@@ -7,12 +7,23 @@ CoviewBridge.bindReadyEvent = function () { ...@@ -7,12 +7,23 @@ CoviewBridge.bindReadyEvent = function () {
// add login ID if not exist // add login ID if not exist
CoviewBridge.addLoginID(globalUserInfo.loginId); CoviewBridge.addLoginID(globalUserInfo.loginId);
coview_api.Login(globalUserInfo.loginId); CoviewBridge.loginCoview();
CollaborationUI.updateScreen(globalUserInfo.collaborationType);
NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE);
}); });
}; };
CoviewBridge.loginCoview = function () {
try {
coview_api.Login(globalUserInfo.loginId);
} catch (err) {
setTimeout(() => {
CoviewBridge.loginCoview();
}, 1000);
return;
}
CollaborationUI.updateScreen(globalUserInfo.collaborationType);
NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE);
};
CoviewBridge.bindFermiWebSocketOpenned = function () { CoviewBridge.bindFermiWebSocketOpenned = function () {
try { try {
wc_api.addEventListener("open", async function (event) { wc_api.addEventListener("open", async function (event) {
...@@ -254,7 +265,7 @@ CollaborationFeature.didReceivedJoinRoomInfoResponseMessage = function () { ...@@ -254,7 +265,7 @@ CollaborationFeature.didReceivedJoinRoomInfoResponseMessage = function () {
CoviewBridge.changeHostFromModal = function () { CoviewBridge.changeHostFromModal = function () {
const userID = CollaborationUI.openedNamecardUserID; const userID = CollaborationUI.openedNamecardUserID;
// call in agent_app.js // call in agent_app.js
coview_api.HostChange(userID); coview_api.HostChange(userID);
}; };
...@@ -509,7 +520,7 @@ CoviewBridge.exitCollaboration = function () { ...@@ -509,7 +520,7 @@ CoviewBridge.exitCollaboration = function () {
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) { if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) {
NativeBridgeDelegate.exitMeetingRoom(); NativeBridgeDelegate.exitMeetingRoom();
} }
if ($("#recordBtn .record").hasClass("disable")) { if ($("#recordBtn .record").hasClass("disable")) {
recordStop().then(function () { recordStop().then(function () {
CoviewBridge.finishCollaboration(); CoviewBridge.finishCollaboration();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment