Spaces:
Running
Running
here is the Jitsi API key vpaas-magic-cookie-1ccca8c667d1427ab468f81fc71eda73/1e3ce2 and the AppID vpaas-magic-cookie-1ccca8c667d1427ab468f81fc71eda73 - Follow Up Deployment
Browse files- index.html +19 -8
index.html
CHANGED
|
@@ -1126,15 +1126,29 @@
|
|
| 1126 |
// Jitsi Functions
|
| 1127 |
function startJitsiSession(roomName, config = {}) {
|
| 1128 |
jitsiContainer.classList.remove('hidden');
|
| 1129 |
-
const domain = '
|
| 1130 |
const options = {
|
| 1131 |
roomName: roomName,
|
| 1132 |
width: '100%',
|
| 1133 |
height: '100%',
|
| 1134 |
parentNode: jitsiContainer,
|
| 1135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1136 |
};
|
| 1137 |
-
jitsiIframe.src = `https://${domain}/${roomName}`;
|
| 1138 |
}
|
| 1139 |
|
| 1140 |
// Event Listeners for new buttons
|
|
@@ -1144,10 +1158,6 @@
|
|
| 1144 |
configOverwrite: {
|
| 1145 |
startWithAudioMuted: true,
|
| 1146 |
startWithVideoMuted: false
|
| 1147 |
-
},
|
| 1148 |
-
interfaceConfigOverwrite: {
|
| 1149 |
-
SHOW_JITSI_WATERMARK: false,
|
| 1150 |
-
SHOW_WATERMARK_FOR_GUESTS: false
|
| 1151 |
}
|
| 1152 |
});
|
| 1153 |
});
|
|
@@ -1273,7 +1283,8 @@
|
|
| 1273 |
startJitsiSession(`ZSL-Interpreter-${interpreterId}-${Date.now()}`, {
|
| 1274 |
configOverwrite: {
|
| 1275 |
startWithAudioMuted: true,
|
| 1276 |
-
startWithVideoMuted: false
|
|
|
|
| 1277 |
}
|
| 1278 |
});
|
| 1279 |
}
|
|
|
|
| 1126 |
// Jitsi Functions
|
| 1127 |
function startJitsiSession(roomName, config = {}) {
|
| 1128 |
jitsiContainer.classList.remove('hidden');
|
| 1129 |
+
const domain = '8x8.vc';
|
| 1130 |
const options = {
|
| 1131 |
roomName: roomName,
|
| 1132 |
width: '100%',
|
| 1133 |
height: '100%',
|
| 1134 |
parentNode: jitsiContainer,
|
| 1135 |
+
jwt: 'vpaas-magic-cookie-1ccca8c667d1427ab468f81fc71eda73/1e3ce2',
|
| 1136 |
+
configOverwrite: {
|
| 1137 |
+
disableSimulcast: false,
|
| 1138 |
+
enableNoAudioDetection: true,
|
| 1139 |
+
enableNoisyMicDetection: true,
|
| 1140 |
+
startWithAudioMuted: true,
|
| 1141 |
+
startWithVideoMuted: false,
|
| 1142 |
+
...config.configOverwrite
|
| 1143 |
+
},
|
| 1144 |
+
interfaceConfigOverwrite: {
|
| 1145 |
+
APP_NAME: 'ZSL Interpreter Connect',
|
| 1146 |
+
SHOW_JITSI_WATERMARK: false,
|
| 1147 |
+
SHOW_WATERMARK_FOR_GUESTS: false,
|
| 1148 |
+
...config.interfaceConfigOverwrite
|
| 1149 |
+
}
|
| 1150 |
};
|
| 1151 |
+
jitsiIframe.src = `https://${domain}/${roomName}?jwt=${options.jwt}`;
|
| 1152 |
}
|
| 1153 |
|
| 1154 |
// Event Listeners for new buttons
|
|
|
|
| 1158 |
configOverwrite: {
|
| 1159 |
startWithAudioMuted: true,
|
| 1160 |
startWithVideoMuted: false
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1161 |
}
|
| 1162 |
});
|
| 1163 |
});
|
|
|
|
| 1283 |
startJitsiSession(`ZSL-Interpreter-${interpreterId}-${Date.now()}`, {
|
| 1284 |
configOverwrite: {
|
| 1285 |
startWithAudioMuted: true,
|
| 1286 |
+
startWithVideoMuted: false,
|
| 1287 |
+
enableClosePage: true
|
| 1288 |
}
|
| 1289 |
});
|
| 1290 |
}
|