Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

doc(iframe_api): Fix the names of the properties in the options object.

hristoterezov4dcbe5c6a0f3
diff --git a/doc/api.md b/doc/api.md
index d74d74bc36..d047d5c45e 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -19,11 +19,11 @@ Its constructor gets a number of options:
* **domain**: domain used to build the conference URL, "meet.jit.si" for
example.
* **options**: object with properties - the optional arguments:
- * **room**: (optional) name of the room to join.
+ * **roomName**: (optional) name of the room to join.
* **width**: (optional) width for the iframe which will be created. If a number is specified it's treated as pixel units. If a string is specified the format is number followed by 'px', 'em', 'pt' or '%'.
* **height**: (optional) height for the iframe which will be created. If a number is specified it's treated as pixel units. If a string is specified the format is number followed by 'px', 'em', 'pt' or '%'.
- * **htmlElement**: (optional) HTL DOM Element where the iframe will be added as a child.
- * **configOverwite**: (optional) JS object with overrides for options defined in [config.js].
+ * **parentNode**: (optional) HTML DOM Element where the iframe will be added as a child.
+ * **configOverwrite**: (optional) JS object with overrides for options defined in [config.js].
* **interfaceConfigOverwrite**: (optional) JS object with overrides for options defined in [interface_config.js].
* **noSsl**: (optional, defaults to true) Boolean indicating if the server should be contacted using HTTP or HTTPS.
* **jwt**: (optional) [JWT](https://jwt.io/) token.
@@ -31,12 +31,12 @@ Its constructor gets a number of options:
Example:
```javascript
+var domain = "meet.jit.si";
var options = {
- domain: "meet.jit.si",
- room: "JitsiMeetAPIExample",
+ roomName: "JitsiMeetAPIExample",
width: 700,
height: 700,
- htmlElement: document.querySelector('#meet')
+ parentNode: document.querySelector('#meet')
}
var api = new JitsiMeetExternalAPI(domain, options);
```
diff --git a/doc/examples/api.html b/doc/examples/api.html
index be56424954..4f7ff9bb79 100644
--- a/doc/examples/api.html
+++ b/doc/examples/api.html
@@ -7,16 +7,17 @@
<script src="https://meet.jit.si/external_api.js"></script>
<script>
var domain = "meet.jit.si";
- var room = "JitsiMeetAPIExample";
- var width = 700;
- var height = 180;
- var htmlElement = undefined;
- var configOverwrite = {};
- var interfaceConfigOverwrite = {
- filmStripOnly: true
- };
- var api = new JitsiMeetExternalAPI(domain, room, width, height,
- htmlElement, configOverwrite, interfaceConfigOverwrite);
+ var options = {
+ roomName: "JitsiMeetAPIExample",
+ width: 700,
+ height: 180,
+ parent: undefined,
+ configOverwrite: {},
+ interfaceConfigOverwrite: {
+ filmStripOnly: true
+ }
+ }
+ var api = new JitsiMeetExternalAPI(domain, options);
</script>
</body>
</html>