mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
@@ -192,7 +192,12 @@ async function getLiveKitJWT(
|
|||||||
delayEndpointBaseUrl?: string,
|
delayEndpointBaseUrl?: string,
|
||||||
delayId?: string,
|
delayId?: string,
|
||||||
): Promise<{ url: string; jwt: string }> {
|
): Promise<{ url: string; jwt: string }> {
|
||||||
let bodyDalayParts = {};
|
interface IDelayParams {
|
||||||
|
delay_id?: string;
|
||||||
|
delay_timeout?: number;
|
||||||
|
delay_cs_api_url?: string;
|
||||||
|
}
|
||||||
|
let bodyDalayParts: IDelayParams = {};
|
||||||
// Also check for empty string
|
// Also check for empty string
|
||||||
if (delayId && delayEndpointBaseUrl) {
|
if (delayId && delayEndpointBaseUrl) {
|
||||||
const delayTimeoutMs =
|
const delayTimeoutMs =
|
||||||
@@ -205,7 +210,7 @@ async function getLiveKitJWT(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const makeRequest = async (
|
const makeRequest = async (
|
||||||
delayParts: Record<string, unknown>,
|
delayParts: IDelayParams,
|
||||||
): Promise<Response> => {
|
): Promise<Response> => {
|
||||||
return await fetch(livekitServiceURL + "/sfu/get", {
|
return await fetch(livekitServiceURL + "/sfu/get", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|||||||
Reference in New Issue
Block a user