2020-05-07 17:26:37 -05:00
|
|
|
// XXX The function parseURLParams is exported by the feature base/util (as
|
2017-05-04 10:20:41 -05:00
|
|
|
// defined in the terminology of react/). However, this file is (very likely)
|
|
|
|
|
// bundled in external_api in addition to app.bundle and, consequently, it is
|
|
|
|
|
// best to import as little as possible here (rather than the whole feature
|
2020-05-07 17:26:37 -05:00
|
|
|
// base/util) in order to minimize the amount of source code bundled into
|
2017-05-04 10:20:41 -05:00
|
|
|
// multiple bundles.
|
2020-05-07 17:26:37 -05:00
|
|
|
import { parseURLParams } from '../../react/features/base/util/parseURLParams';
|
2017-04-17 10:52:31 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* JitsiMeetExternalAPI id - unique for a webpage.
|
2023-07-21 10:37:55 +02:00
|
|
|
* TODO: This shouldn't be computed here.
|
2017-04-17 10:52:31 -05:00
|
|
|
*/
|
2023-07-21 10:37:55 +02:00
|
|
|
let _apiID;
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
_apiID = parseURLParams(window.location).jitsi_meet_external_api_id;
|
|
|
|
|
} catch (_) { /* Ignore. */ }
|
|
|
|
|
|
|
|
|
|
export const API_ID = _apiID;
|
2020-03-20 13:51:26 +02:00
|
|
|
|
|
|
|
|
/**
|
2021-11-04 22:10:43 +01:00
|
|
|
* The payload name for the datachannel/endpoint text message event.
|
2020-03-20 13:51:26 +02:00
|
|
|
*/
|
|
|
|
|
export const ENDPOINT_TEXT_MESSAGE_NAME = 'endpoint-text-message';
|
2023-04-26 15:32:53 +03:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The min value that can be set for the assumed bandwidth.
|
|
|
|
|
* Setting it to this value means not assuming any bandwidth,
|
|
|
|
|
* but rather allowing the estimations to take place.
|
|
|
|
|
*/
|
2023-06-08 17:44:01 +03:00
|
|
|
export const MIN_ASSUMED_BANDWIDTH_BPS = -1;
|