Skip to content

Commit bbd1974

Browse files
committed
Update jitsi-dev.md
1 parent 6f04841 commit bbd1974

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

‎docs/jitsi-dev.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Jitsi wrapper developer docs
22

3-
*If you're looking for information on how to set up Jitsi in your Riot, see
3+
*If you're looking for information on how to set up Jitsi in your Element, see
44
[jitsi.md](./jitsi.md) instead.*
55

66
These docs are for developers wondering how the different conference buttons work
7-
within Riot. If you're not a developer, you're probably looking for [jitsi.md](./jitsi.md).
7+
within Element. If you're not a developer, you're probably looking for [jitsi.md](./jitsi.md).
88

99
## Brief introduction to widgets
1010

@@ -17,8 +17,8 @@ in the react-sdk), though for some widgets special integration can be done. v2 w
1717
have a `data` object which helps achieve that special integration, though v1 widgets
1818
are best iframed and left alone.
1919

20-
Widgets have a `postMessage` API they can use to interact with Riot, which also allows
21-
Riot to interact with them. Typically this is most used by the sticker picker (an
20+
Widgets have a `postMessage` API they can use to interact with Element, which also allows
21+
Element to interact with them. Typically this is most used by the sticker picker (an
2222
account-level widget), though widgets like the Jitsi widget will request permissions to
2323
get 'stuck' into the room list during a conference.
2424

@@ -28,7 +28,7 @@ Widgets can be added with the `/addwidget <url>` command.
2828

2929
Integration managers (like Scalar and Dimension) are accessible via the 4 squares in
3030
the top right of the room and provide a simple UI over top of bridges, bots, and other
31-
stuff to plug into a room. They are a separate service to Riot and are thus iframed
31+
stuff to plug into a room. They are a separate service to Element and are thus iframed
3232
in a dialog as well. They also have a `postMessage` API they can use to interact with
3333
the client to create things like widgets, give permissions to bridges, and generally
3434
set everything up for the integration the user is working with.
@@ -51,7 +51,7 @@ over `postMessage`, even if they aren't going to be using the widget APIs).
5151

5252
Widgets added with the `/addwidget` command will *not* be wrapped as they are not going
5353
through an integration manager. The widgets themselves *should* also work outside of
54-
Riot. Widgets currently have a "pop out" button which opens them in a new tab and
54+
Element. Widgets currently have a "pop out" button which opens them in a new tab and
5555
therefore have no connection back to Riot.
5656

5757
## Jitsi widgets from integration managers
@@ -65,27 +65,27 @@ server they specified in their config.json - this is expected.
6565
Some integration managers allow the user to change the conference name while others
6666
will generate one for the user.
6767

68-
## Jitsi widgets generated by Riot itself
68+
## Jitsi widgets generated by Element itself
6969

7070
When the user clicks on the call buttons by the composer, the integration manager is
71-
not involved in the slightest. Instead, Riot itself generates a widget event, this time
71+
not involved in the slightest. Instead, Element itself generates a widget event, this time
7272
using the config.json parameters, and publishes that to the room. If there's only two
7373
people in the room, a plain WebRTC call is made instead of using a widget at all - these
7474
are defined in the Matrix specification.
7575

76-
The Jitsi widget created by Riot uses a local `jitsi.html` wrapper (or one hosted by
77-
`https://riot.im/app` for desktop users or those on non-https domains) as the widget
78-
`url`. The wrapper has some basic functionality for talking to Riot to ensure the
76+
The Jitsi widget created by Element uses a local `jitsi.html` wrapper (or one hosted by
77+
`https://app.element.io` for desktop users or those on non-https domains) as the widget
78+
`url`. The wrapper has some basic functionality for talking to Element to ensure the
7979
required `postMessage` calls are fulfilled.
8080

8181
**Note**: Per [jitsi.md](./jitsi.md) the `preferredDomain` can also come from the server's
8282
client .well-known data.
8383

84-
## The Jitsi wrapper in Riot
84+
## The Jitsi wrapper in Element
8585

86-
Whenever Riot sees a Jitsi widget, it ditches the `url` and instead replaces it with
86+
Whenever Element sees a Jitsi widget, it ditches the `url` and instead replaces it with
8787
its local wrapper, much like what it would do when creating a widget. However, instead
88-
of using one from riot.im/app, it will use one local to the client instead.
88+
of using one from [app.element.io](https://app.element.io), it will use one local to the client instead.
8989

9090
The wrapper is used to provide a consistent experience to users, as well as being faster
9191
and less risky to load. The local wrapper URL is populated with the conference information

0 commit comments

Comments
 (0)