Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
468 views
in Technique[技术] by (71.8m points)

javascript - How to change a Jitsi IFrame API domain?

So I'm using the Jitsi Meet IFrame API and am looking to get the additional customization that comes from hosting it on my own server...the problem is I'm kinda of a newbie when it comes to this stuff and am not sure exactly what that means. I think I have to change the defined domain from 'meet.jit.si' to my own domain but am not sure how to go about that. How can I change the domain to something else? Here's the code for the embedded Jitsi meeting:

<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Product" prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="utf-8">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
    <script src="https://meet.jit.si/external_api.js"></script>
    <script>
        var domain = "meet.jit.si";
        var options = {
            roomName: "TestRoomName",
            width: 800,
            height: 700,
            parentNode: undefined,
            configOverwrite: {},
            interfaceConfigOverwrite: {}
        }
        var api = new JitsiMeetExternalAPI(domain, options);
    </script>
</body>
</html>
question from:https://stackoverflow.com/questions/65661065/how-to-change-a-jitsi-iframe-api-domain

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Change following lines:

<script src="https://{yourdomain.com}/external_api.js"></script>

var domain = "yourdomain.com";

Let me know if it works!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...