Hi I want to initialize a Jitsi call in a new window.
So, to avoid having a secondary app for the second window, just secondary window for call, I tried something like:
const callWindow = window.open( ... ); const myDiv = document.createElement('div'); callWindow.document.body.append(myDiv); api = new JitsiMeetExternalAPI( .... parentNode:myDiv );
This apparently works well, call is initialized etc.; the problem comes when trying to listen for events.
Listeners don’t work, and seems related with the way I’m invoking Jitsi, in new window.
Do you know if this could be a bug candidate? Or maybe you recommend to just create a second app for the second window instead of trying to have full control from the main window and main app? If so, why?
What I find is that, if second window has the
<script> with JitsiMeetExternalApi, it works well invoking from main window/app.