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
66These 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
1717have a ` data ` object which helps achieve that special integration, though v1 widgets
1818are 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
2222account-level widget), though widgets like the Jitsi widget will request permissions to
2323get 'stuck' into the room list during a conference.
2424
@@ -28,7 +28,7 @@ Widgets can be added with the `/addwidget <url>` command.
2828
2929Integration managers (like Scalar and Dimension) are accessible via the 4 squares in
3030the 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
3232in a dialog as well. They also have a ` postMessage ` API they can use to interact with
3333the client to create things like widgets, give permissions to bridges, and generally
3434set 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
5252Widgets added with the ` /addwidget ` command will * not* be wrapped as they are not going
5353through 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
5555therefore 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.
6565Some integration managers allow the user to change the conference name while others
6666will generate one for the user.
6767
68- ## Jitsi widgets generated by Riot itself
68+ ## Jitsi widgets generated by Element itself
6969
7070When 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
7272using the config.json parameters, and publishes that to the room. If there's only two
7373people in the room, a plain WebRTC call is made instead of using a widget at all - these
7474are 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
7979required ` postMessage ` calls are fulfilled.
8080
8181** Note** : Per [ jitsi.md] ( ./jitsi.md ) the ` preferredDomain ` can also come from the server's
8282client .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
8787its 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
9090The wrapper is used to provide a consistent experience to users, as well as being faster
9191and less risky to load. The local wrapper URL is populated with the conference information
0 commit comments