I am trying to use the Jitsi iFrame API on a web page. Here is the code:
“`
<div id=”meet”></div>
<script>
const options = {
parentNode: document.querySelector(‘#meet’),
width: “100%”,
height: “100%”
}
meetAPI = new JitsiMeetExternalAPI(“meet.jit.si”, options);
</script>
I have the jitsi screen (located at <div id=”meet”></div>) at the bottom of the web page. However, when you visit the page, the bottom of the page immediately appears with the jitsi screen. Why does it do that? If I block the <script>jitsi</script>, it doesn’t do that, the normal top of page appears and you can manually scroll down to the <div id=”meet”></div>, (like you would normally reading a web page from top to bottom). What I’m trying to accomplish is being able to manually scroll down the web page to see the jitsi screen and Start Meeting, if I choose to.
The Jitsi manual shows an onload option:
“The API object constructor uses the following options:
—- etc…..
onload: The IFrame onload event handler.”
Would this help me accomplish what I’m trying to?
If so, can you please provide a possible example of what to use there to remedy this?
“`
const options = {
parentNode: document.querySelector(‘#meet’),
width: “100%”,
height: “100%”,
onload: ?????????
}
Any help is appreciated.