Jitsi-meet: JitsiMeetExternalAPI is not defined

Created on 24 Sep 2019  路  6Comments  路  Source: jitsi/jitsi-meet

I'm trying to embed Jitsi Meet in my application using Jitsi Meet API :
<script src='https://meet.jit.si/external_api.js'></script>

But I get the error JitsiMeetExternalAPI is not defined, looks like it's not attached to the window object.

Edit

I can find an object JitsiMeetJS but not JitsiMeetExternalAPI

api

All 6 comments

Please, when having problems or questions use the community forum before opening new issues.

You better share your code. I just tested the example that comes with the documentation and it works just fine. Check your code.

@damencho The source of the problem is that I have a global object exports in my Meteor app (I don't know where it's coming from), JitsiMeetExternalAPI is attached to that object instead of window.

You can reproduce this in the example you shared by adding :
<script> window.exports = {}; </script>
before
<script src="https://meet.jit.si/external_api.js"></script>

Thanks

Have you found a solution?

I'm just using :

window.JitsiMeetExternalAPI = window.JitsiMeetExternalAPI || window.exports.JitsiMeetExternalAPI;

@ramrami I found this:
https://meetrix.io/blog/webrtc/integrate-jitsi-meet-to-react-app.html

Were you able to successfully get jitsi integrated?

Seems the creator doesnt care about it being usable on webapp

@developdeez Yes I was able to successfully get jitsi integrated in my meteor app. In my case, I had to get the JitsiMeetExternalAPI object from window.exports instead of window.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Janhouse picture Janhouse  路  99Comments

julianfoad picture julianfoad  路  66Comments

jans23 picture jans23  路  130Comments

weeman1337 picture weeman1337  路  56Comments

carotkut94 picture carotkut94  路  45Comments