Commit e9c2cd7e by Kim Peace

Fixed indents

parent af2f2fee
......@@ -33,11 +33,19 @@ CoviewBridge.bindStartEvent = function () {
};
CollaborationFeature.checkAndRetryCamera = async function () {
if (!deviceInfo.isAndroid) { return; }
if (globalUserInfo.collaborationType != COLLABORATION_TYPE.VIDEO) { return; }
if (g_newStream != null) { return; }
if (!deviceInfo.isAndroid) {
return;
}
if (globalUserInfo.collaborationType != COLLABORATION_TYPE.VIDEO) {
return;
}
if (g_newStream != null) {
return;
}
try {
const cameraStream = await navigator.mediaDevices.getUserMedia(options.constraints);
const cameraStream = await navigator.mediaDevices.getUserMedia(
options.constraints
);
if (cameraStream != null && options.isMainMan) {
ORGcreateLocalVideo(options.constraints);
} else {
......@@ -135,7 +143,7 @@ CoviewBridge.bindMessageEvent = function () {
case "CreateRoomResponse":
if (json.resultCode == 200) {
CollaborationFeature.didReceiveCreateRoomResponseMessage();
CollaborationFeature.checkAndRetryCamera();
CollaborationFeature.checkAndRetryCamera();
}
break;
case "joinRoomInfoResponse":
......@@ -292,7 +300,6 @@ CollaborationFeature.updateHost = function () {
};
CollaborationUI.showHostButtons = function () {
$(".host_contents").removeClass("none");
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) {
$(".photo_select_button").removeClass("none");
......@@ -304,7 +311,6 @@ CollaborationUI.showHostButtons = function () {
};
CollaborationUI.hideHostButtons = function () {
$(".host_contents").addClass("none");
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) {
$(".photo_select_button").addClass("none");
......@@ -320,7 +326,7 @@ CollaborationUI.showHostMark = function (hostName) {
attendingUsers.forEach(function (userName) {
const user = "#collaboration_user_" + getReplacedLoginId(userName);
$(user).removeClass("host");
})
});
// set host name as current user if host name is not set
if (hostName == "") {
......
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