Updates for Jitsi and IDAA

This commit is contained in:
Scott Idem
2025-09-23 14:41:06 -04:00
parent 2f4800f995
commit 08bc3142e6
2 changed files with 12 additions and 3 deletions

View File

@@ -51,12 +51,21 @@ fetch(novi_api_get_customer_endpoint, requestOptions)
.then(response => response.json())
.then(result => {
novi_current_user_obj = result;
console.log(`Novi's Current User Obj:`, novi_current_user_obj);
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
let full_name = novi_current_user_obj?.Name;
let first_name = novi_current_user_obj?.FirstName;
let last_initial = (novi_current_user_obj?.LastName) ? novi_current_user_obj.LastName.charAt(0).toUpperCase() + '.' : '';
if (last_initial) {
full_name = `${first_name} ${last_initial}`;
}
console.log(`Novi's Current User's Full Name: ${full_name}`);
let idaa_ae_iframe_element = document.getElementById('ae_idaa_jitsi_meeting_iframe');
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&moderator=${is_moderator}&room=${room_name}&iframe=true&key=${idaa_osit_site_key}`;
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${full_name}&moderator=${is_moderator}&room=${room_name}&iframe=true&key=${idaa_osit_site_key}`;
// url.searchParams.delete('event_id');
// history.pushState({}, '', url);

View File

@@ -9,7 +9,7 @@
<h1>New Jitsi Meetings for IDAA</h1>
<p>The URL parameters are passed from the Novi page that contains this as an iframe. This will automatically set the attendees name, email address, moderator status, and room name. The moderator status is based on the Novi UUID.</p>
<p>The URL parameters are passed from the Novi page that contains this as an iframe. This will automatically set the attendees name, email address, moderator status, and room name. The moderator status is based on the Novi UUID. This message will be hidden before going live.</p>
<div id="jitsi_meet_external_api_container" style="height: 750px; width: 100%;"></div>
<script src="https://jitsi.dgrzone.com/external_api.js"></script>
@@ -46,7 +46,7 @@ if (novi_jitsi_mod_li.includes(user_id)) {
async function getJitsiJwt() {
// This is the URL of your backend API endpoint.
// It's a server-side route that will create the JWT for you.
const tokenEndpoint = 'https://dev-api.oneskyit.com/api/jitsi_token';
const tokenEndpoint = 'https://api.oneskyit.com/api/jitsi_token';
// Pass user information and moderator status to the backend
const payload = {