2020-06-19 16:36:40 +02:00
|
|
|
const DEBUG_MODE: boolean = process.env.DEBUG_MODE == "true";
|
2021-01-21 09:40:11 +01:00
|
|
|
const START_ROOM_URL : string = process.env.START_ROOM_URL || '/_/global/maps.workadventure.localhost/Floor0/floor0.json';
|
2020-11-13 18:00:22 +01:00
|
|
|
const API_URL = (process.env.API_PROTOCOL || (typeof(window) !== 'undefined' ? window.location.protocol : 'http:')) + '//' + (process.env.API_URL || "pusher.workadventure.localhost");
|
2020-12-09 21:29:29 +01:00
|
|
|
const UPLOADER_URL = (process.env.API_PROTOCOL || (typeof(window) !== 'undefined' ? window.location.protocol : 'http:')) + '//' + (process.env.UPLOADER_URL || 'uploader.workadventure.localhost');
|
2021-01-20 10:34:26 +01:00
|
|
|
const ADMIN_URL = (process.env.API_PROTOCOL || (typeof(window) !== 'undefined' ? window.location.protocol : 'http:')) + '//' + (process.env.ADMIN_URL || "workadventure.localhost");
|
2021-02-08 20:46:26 +01:00
|
|
|
const STUN_SERVER: string = process.env.STUN_SERVER || "stun:stun.l.google.com:19302";
|
2020-08-28 13:52:25 +02:00
|
|
|
const TURN_SERVER: string = process.env.TURN_SERVER || "turn:numb.viagenie.ca";
|
|
|
|
const TURN_USER: string = process.env.TURN_USER || 'g.parant@thecodingmachine.com';
|
|
|
|
const TURN_PASSWORD: string = process.env.TURN_PASSWORD || 'itcugcOHxle9Acqi$';
|
2020-08-31 12:18:00 +02:00
|
|
|
const JITSI_URL : string|undefined = (process.env.JITSI_URL === '') ? undefined : process.env.JITSI_URL;
|
2020-10-19 11:07:49 +02:00
|
|
|
const JITSI_PRIVATE_MODE : boolean = process.env.JITSI_PRIVATE_MODE == "true";
|
2020-11-14 14:04:11 +01:00
|
|
|
const RESOLUTION = 2;
|
2020-04-27 18:12:36 +02:00
|
|
|
const ZOOM_LEVEL = 1/*3/4*/;
|
2020-06-01 22:42:18 +02:00
|
|
|
const POSITION_DELAY = 200; // Wait 200ms between sending position events
|
2020-09-30 13:49:23 +02:00
|
|
|
const MAX_EXTRAPOLATION_TIME = 100; // Extrapolate a maximum of 250ms if no new movement is sent by the player
|
2020-04-05 20:57:14 +02:00
|
|
|
|
|
|
|
export {
|
2020-04-13 19:40:10 +02:00
|
|
|
DEBUG_MODE,
|
2021-01-07 12:15:33 +01:00
|
|
|
START_ROOM_URL,
|
2020-04-06 22:55:09 +02:00
|
|
|
API_URL,
|
2020-12-09 21:29:29 +01:00
|
|
|
UPLOADER_URL,
|
2020-10-24 13:37:33 +02:00
|
|
|
ADMIN_URL,
|
2020-04-07 20:41:35 +02:00
|
|
|
RESOLUTION,
|
2020-04-13 19:56:41 +02:00
|
|
|
ZOOM_LEVEL,
|
2020-06-02 10:48:04 +02:00
|
|
|
POSITION_DELAY,
|
2020-08-31 12:18:00 +02:00
|
|
|
MAX_EXTRAPOLATION_TIME,
|
2021-02-08 20:46:26 +01:00
|
|
|
STUN_SERVER,
|
2020-08-28 13:52:25 +02:00
|
|
|
TURN_SERVER,
|
|
|
|
TURN_USER,
|
|
|
|
TURN_PASSWORD,
|
2020-10-19 11:07:49 +02:00
|
|
|
JITSI_URL,
|
|
|
|
JITSI_PRIVATE_MODE
|
2020-04-27 18:12:36 +02:00
|
|
|
}
|