Commit 6e4381a0 by Kim Peace

Removed unused console log

parent 42593f80
......@@ -21,7 +21,6 @@ CHAT_SOCKET.handleMessage = function (message, roomName, socketKey, collaboratio
CHAT_SOCKET.cleanUpCollaborationMessage();
if (typeof CoviewBridge !== "undefined" && g_isMainMan !== "undefined" && g_isMainMan == false) {
console.log("peacekim:: CHAT_SOCKET.handleMessage finishcollaboration");
CoviewBridge.finishCollaboration();
}
return;
......
......@@ -87,9 +87,7 @@ function toggleRecord() {
function recordStop() {
return new Promise(function (done) {
console.log("peacekim:: recordStop start");
if (!$("#recordBtn .record").hasClass("disable")) {
console.log("peacekim:: recordStop done 1");
done();
return;
}
......@@ -99,14 +97,12 @@ function recordStop() {
// アーカイブ保存処理
mainManRecordStopWithCollaboration().then(function () {
console.log("peacekim:: recordStop done 2");
done();
});
});
}
async function sendRecordedData() {
console.log("peacekim:: sendRecordedData start");
return new Promise(function (done) {
// get lastest message id and update message from server via native
const blob = new Blob(recordedBlobs, { type: "video/webm" });
......@@ -123,31 +119,26 @@ async function sendRecordedData() {
formData.append("archiveType", collaborationType);
postRecords(formData).then(function () {
console.log("peacekim:: sendRecordedData done 1");
done();
});
});
}
function mainManRecordStopWithCollaboration() {
console.log("peacekim:: mainManRecordStopWithCollaboration start");
return new Promise(function (done) {
try {
mediaRecorder.stop();
} catch (exeption) {
console.error("Record stop failed");
console.log("peacekim:: mainManRecordStopWithCollaboration done 1");
done();
}
sendRecordedData().then(function () {
console.log("peacekim:: mainManRecordStopWithCollaboration done 2");
done();
});
});
}
function postRecords(formData) {
console.log("peacekim:: postRecords start");
return new Promise(function (done) {
$.ajax({
type: "post",
......@@ -158,13 +149,11 @@ function postRecords(formData) {
success: function (res) {
recordFinished();
Common.dismissLoadingIndicator();
console.log("peacekim:: postRecords done 1");
done();
},
error: function (err) {
recordFinished();
Common.dismissLoadingIndicator();
console.log("peacekim:: postRecords done 2");
done();
},
});
......
......@@ -198,7 +198,6 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () {
} else if (isHost) {
globalUserInfo.meetingID = NativeBridgeDataSource.createContentView();
if (globalUserInfo.meetingID == "-1") {
console.log("peacekim:: didReceiveLoginResponseMessage - finishCollaboration");
//会議室作成失敗
CoviewBridge.finishCollaboration();
return;
......@@ -512,17 +511,14 @@ CoviewBridge.exitCollaboration = function () {
if ($("#recordBtn .record").hasClass("disable")) {
recordStop().then(function () {
console.log("peacekim:: exitCollaboration - finishCollaboration 1");
CoviewBridge.finishCollaboration();
});
} else {
console.log("peacekim:: exitCollaboration - finishCollaboration 2");
CoviewBridge.finishCollaboration();
}
};
CoviewBridge.finishCollaboration = function () {
console.log("peacekim:: finishCollaboration start");
Common.showLoadingIndicator();
coview_api.LeaveRoom();
if (coview_api.getRoomUsers()) {
......
......@@ -53,7 +53,6 @@ function changeCollaboration(collaborationType) {
coview_api.ChangeCollaboration("audio");
newMeetingID = NativeBridgeDataSource.createContentView();
if (newMeetingID == "-1") {
console.log("peacekim:: changeCollaboration to collaborationType doument call finishcollaboration ");
//会議室作成失敗
CoviewBridge.finishCollaboration();
return;
......
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