Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

constants.js 1.1KB

12345678910111213141516171819202122232425262728293031
  1. // XXX The function parseURLParams is exported by the feature base/util (as
  2. // defined in the terminology of react/). However, this file is (very likely)
  3. // bundled in external_api in addition to app.bundle and, consequently, it is
  4. // best to import as little as possible here (rather than the whole feature
  5. // base/util) in order to minimize the amount of source code bundled into
  6. // multiple bundles.
  7. import { parseURLParams } from '../../react/features/base/util/parseURLParams';
  8. /**
  9. * JitsiMeetExternalAPI id - unique for a webpage.
  10. * TODO: This shouldn't be computed here.
  11. */
  12. let _apiID;
  13. try {
  14. _apiID = parseURLParams(window.location).jitsi_meet_external_api_id;
  15. } catch (_) { /* Ignore. */ }
  16. export const API_ID = _apiID;
  17. /**
  18. * The payload name for the datachannel/endpoint text message event.
  19. */
  20. export const ENDPOINT_TEXT_MESSAGE_NAME = 'endpoint-text-message';
  21. /**
  22. * The min value that can be set for the assumed bandwidth.
  23. * Setting it to this value means not assuming any bandwidth,
  24. * but rather allowing the estimations to take place.
  25. */
  26. export const MIN_ASSUMED_BANDWIDTH_BPS = -1;