2024-02-22 23:15:46 +08:00
|
|
|
# Url Format and parameters
|
2023-10-26 17:18:12 +08:00
|
|
|
|
|
|
|
There are two formats for Element Call urls.
|
|
|
|
|
|
|
|
- **Current Format**
|
2024-02-22 23:15:46 +08:00
|
|
|
|
|
|
|
```text
|
2023-10-26 17:18:12 +08:00
|
|
|
https://element_call.domain/room/#
|
|
|
|
/<room_name_alias>?roomId=!id:domain&password=1234&<other params see below>
|
|
|
|
```
|
2024-02-22 23:15:46 +08:00
|
|
|
|
|
|
|
The url is split into two sections. The `https://element_call.domain/room/#`
|
|
|
|
contains the app and the intend that the link brings you into a specific room
|
|
|
|
(`https://call.element.io/#` would be the homepage). The fragment is used for
|
|
|
|
query parameters to make sure they never get sent to the element_call.domain
|
|
|
|
server. Here we have the actual matrix roomId and the password which are used
|
|
|
|
to connect all participants with e2ee. This allows that `<room_name_alias>` does
|
|
|
|
not need to be unique. Multiple meetings with the label weekly-sync can be created
|
|
|
|
without collisions.
|
|
|
|
|
2023-10-26 17:18:12 +08:00
|
|
|
- **deprecated**
|
2024-02-22 23:15:46 +08:00
|
|
|
|
|
|
|
```text
|
2023-10-26 17:18:12 +08:00
|
|
|
https://element_call.domain/<room_name>
|
|
|
|
```
|
2024-02-22 23:15:46 +08:00
|
|
|
|
|
|
|
With this format the livekit alias that will be used is the `<room_name>`.
|
|
|
|
All ppl connecting to this url will end up in the same unencrypted room.
|
|
|
|
This does not scale, is super unsecure
|
|
|
|
(ppl could end up in the same room by accident) and it also is not really
|
|
|
|
possible to support encryption.
|
2023-10-26 17:18:12 +08:00
|
|
|
The url parameters are spit into two categories: **general** and **widget related**.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
## Widget related params
|
2023-10-26 17:18:12 +08:00
|
|
|
|
|
|
|
**widgetId**
|
2024-02-22 23:15:46 +08:00
|
|
|
The id used by the widget. The presence of this parameter implies that element
|
|
|
|
call will not connect to a homeserver directly and instead tries to establish
|
|
|
|
postMessage communication via the `parentUrl`.
|
2023-10-26 17:18:12 +08:00
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
widgetId: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**parentUrl**
|
2024-02-22 23:15:46 +08:00
|
|
|
The url used to send widget action postMessages. This should be the domain of
|
|
|
|
the client or the webview the widget is hosted in. (in case the widget is not
|
|
|
|
in an Iframe but in a dedicated webview we send the postMessages same webview
|
|
|
|
the widget lives in. Filtering is done in the widget so it ignores the messages
|
|
|
|
it receives from itself)
|
2023-10-26 17:18:12 +08:00
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
parentUrl: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**userId**
|
|
|
|
The user's ID (only used in matryoshka mode).
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
userId: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**deviceId**
|
|
|
|
The device's ID (only used in matryoshka mode).
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
deviceId: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**baseUrl**
|
|
|
|
The base URL of the homeserver to use for media lookups in matryoshka mode.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
baseUrl: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
### General url parameters
|
|
|
|
|
|
|
|
**roomId**
|
|
|
|
Anything about what room we're pointed to should be from useRoomIdentifier which
|
|
|
|
parses the path and resolves alias with respect to the default server name, however
|
|
|
|
roomId is an exception as we need the room ID in embedded (matroyska) mode, and not
|
|
|
|
the room alias (or even the via params because we are not trying to join it). This
|
|
|
|
is also not validated, where it is in useRoomIdentifier().
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
roomId: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**confineToRoom**
|
|
|
|
Whether the app should keep the user confined to the current call/room.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
confineToRoom: boolean; (default: false)
|
|
|
|
```
|
|
|
|
|
|
|
|
**appPrompt**
|
|
|
|
Whether upon entering a room, the user should be prompted to launch the
|
|
|
|
native mobile app. (Affects only Android and iOS.)
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
appPrompt: boolean; (default: true)
|
|
|
|
```
|
|
|
|
|
|
|
|
**preload**
|
|
|
|
Whether the app should pause before joining the call until it sees an
|
|
|
|
io.element.join widget action, allowing it to be preloaded.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
preload: boolean; (default: false)
|
|
|
|
```
|
|
|
|
|
|
|
|
**hideHeader**
|
|
|
|
Whether to hide the room header when in a call.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
hideHeader: boolean; (default: false)
|
|
|
|
```
|
|
|
|
|
|
|
|
**showControls**
|
2024-02-22 23:15:46 +08:00
|
|
|
Whether to show the buttons to mute, screen-share, invite, hangup are shown
|
|
|
|
when in a call.
|
2023-10-26 17:18:12 +08:00
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
showControls: boolean; (default: true)
|
|
|
|
```
|
|
|
|
|
|
|
|
**hideScreensharing**
|
|
|
|
Whether to hide the screen-sharing button.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
hideScreensharing: boolean; (default: false)
|
|
|
|
```
|
|
|
|
|
2023-11-17 23:58:40 +08:00
|
|
|
**enableE2EE** (Deprecated)
|
|
|
|
Whether to use end-to-end encryption. This is a legacy flag for the full mesh branch.
|
|
|
|
It is not used on the livekit branch and has no impact there!
|
2023-10-26 17:18:12 +08:00
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-11-03 23:04:54 +08:00
|
|
|
enableE2EE: boolean; (default: true)
|
|
|
|
```
|
|
|
|
|
|
|
|
**perParticipantE2EE**
|
|
|
|
Whether to use per participant encryption.
|
|
|
|
Keys will be exchanged over encrypted matrix room messages.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-11-03 23:04:54 +08:00
|
|
|
perParticipantE2EE: boolean; (default: false)
|
2023-10-26 17:18:12 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
**password**
|
2024-02-22 23:15:46 +08:00
|
|
|
E2EE password when using a shared secret.
|
|
|
|
(For individual sender keys in embedded mode this is not required.)
|
2023-10-26 17:18:12 +08:00
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
password: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**displayName**
|
|
|
|
The display name to use for auto-registration.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
displayName: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**lang**
|
|
|
|
The BCP 47 code of the language the app should use.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
lang: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**fonts**
|
|
|
|
The font/fonts which the interface should use.
|
|
|
|
There can be multiple font url parameters: `?font=font-one&font=font-two...`
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
font: string;
|
|
|
|
font: string;
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
**fontScale**
|
|
|
|
The factor by which to scale the interface's font size.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
fontScale: number | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**analyticsID**
|
2024-02-22 23:15:46 +08:00
|
|
|
The Posthog analytics ID. It is only available if the user has given consent for
|
|
|
|
sharing telemetry in element web.
|
2023-10-26 17:18:12 +08:00
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
analyticsID: string | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
**allowIceFallback**
|
|
|
|
Whether the app is allowed to use fallback STUN servers for ICE in case the
|
|
|
|
user's homeserver doesn't provide any.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
allowIceFallback: boolean; (default: false)
|
|
|
|
```
|
|
|
|
|
|
|
|
**skipLobby**
|
|
|
|
Setting this flag skips the lobby and brings you in the call directly.
|
|
|
|
In the widget this can be combined with preload to pass the device settings
|
|
|
|
with the join widget action.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2023-10-26 17:18:12 +08:00
|
|
|
skipLobby: boolean; (default: false)
|
|
|
|
```
|
2024-01-26 17:03:08 +08:00
|
|
|
|
|
|
|
**returnToLobby**
|
|
|
|
Setting this flag makes element call show the lobby in widget mode after leaving
|
|
|
|
a call.
|
|
|
|
This is useful for video rooms.
|
|
|
|
If set to false, the widget will show a blank page after leaving the call.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2024-01-26 17:03:08 +08:00
|
|
|
returnToLobby: boolean; (default: false)
|
|
|
|
```
|
2024-02-22 04:52:31 +08:00
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
**theme**
|
|
|
|
The theme to use for element call.
|
|
|
|
can be "light", "dark", "light-high-contrast" or "dark-high-contrast".
|
|
|
|
If not set element call will use the dark theme.
|
|
|
|
|
|
|
|
```ts
|
|
|
|
theme: string | null;
|
|
|
|
```
|
|
|
|
|
2024-02-22 04:52:31 +08:00
|
|
|
**viaServers**
|
|
|
|
This defines the homeserver that is going to be used when joining a room.
|
|
|
|
It has to be set to a non default value for links to rooms
|
|
|
|
that are not on the default homeserver,
|
|
|
|
that is in use for the current user.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2024-02-22 04:52:31 +08:00
|
|
|
viaServers: string; (default: undefined)
|
|
|
|
```
|
|
|
|
|
|
|
|
**homeserver**
|
|
|
|
This defines the homeserver that is going to be used when registering
|
|
|
|
a new (guest) user.
|
|
|
|
This can be user to configure a non default guest user server when
|
|
|
|
creating a spa link.
|
|
|
|
|
2024-02-22 23:15:46 +08:00
|
|
|
```ts
|
2024-02-22 04:52:31 +08:00
|
|
|
homeserver: string; (default: undefined)
|
|
|
|
```
|