GithubHelp home page GithubHelp logo

Comments (2)

deleolajide avatar deleolajide commented on June 23, 2024 2

Thanks for the kind words 👍

I would love to know how that's even possible, and why the main Jitsi Meet project doesn't do something similar instead of having to run a full blown server to host Jitsi.

In the first version of jitsi-meet, we used to be able to change how it got the room name.

I modified it use a query parameter (https://server?room=xxx) in JavaScript instead of a pathname (https://server/xxx) that requires server-side code.

    function CF() {
        let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
        return _().words(`${e}`.replace(/['\u2019]/g, "")).reduce(((e, t, n) => e + (n ? " " : "") + _().upperFirst(t)), "")
    }
    const AF = "CONNECTION_DISCONNECTED", TF = "CONNECTION_ESTABLISHED", DF = "CONNECTION_FAILED", PF = "CONNECTION_WILL_CONNECT", jF = "SET_LOCATION_URL", MF = "SHOW_CONNECTION_INFO", IF = Symbol("conference"), OF = (Symbol("url"), $e("features/base/connection"));

    function NF() {
		var urlParam = function(name)
		{
			var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
			if (!results) { return undefined; }
			return unescape(results[1] || undefined);
		};
				
        return (e, t) => {
			Sn(t()["features/base/conference"].room = urlParam("room") || localStorage.getItem("ipade.room.name") || "lobby");	// BAO
            const n = Sn(t()["features/base/conference"].room);
			localStorage.setItem("ipade.room.name", n);	// BAO	
			
			if (location.href.indexOf("?room=") == -1) {
				location.href = "index.html?room=" + localStorage.getItem("ipade.room.name");
			}				
			
            return e(((e, t) => {
                const n = function(e) {
                    const t = It(e["features/base/connection"].locationURL),
                        n = t["devices.audioOutput"],
                        a = t["devices.videoInput"],
                        r = t["devices.audioInput"];
                    if (!n && !a && !r) return;
                    const i = {};
                    return n && (i.audioOutput = n), a && (i.videoInput = a), r && (i.audioInput = r), i
                }(t());
                let a;
                return a = n ? e(eI()).then((() => {
                    const a = t();
                    if (!qM(a)) return void Object.keys(n).forEach((t => {
                        e(XM({
                            type: "devices",
                            name: "setDevice",
                            device: {
                                kind: t.toLowerCase(),
                                label: n[t]
                            },
                            responseCallback() {}
                        }))
                    }));
                    const r = {};
                    Object.keys(n).forEach((e => {
                        const t = n[e],
                            i = HM(a, t, e);
                        if (i) {
                            const n = QM[e];
                            r[n.currentDeviceId] = i, r[n.userSelectedDeviceId] = i, r[n.userSelectedDeviceLabel] = t
                        }
                    })), e(hn(r))
                })) : Promise.resolve(), a.then((() => ZM(ra(t()), e).catch((e => LM.warn(`Failed to set audio output device.\n                        Default audio output device will be used instead ${e}`)))))
            })).then((() => APP.conference.init({
                roomName: n
            }).catch((e => {
                APP.API.notifyConferenceLeft(APP.conference.roomName), OF.error(e)
            }))))
        }
    }

from ipade.

dillfrescott avatar dillfrescott commented on June 23, 2024

I feel like this repo deserves a lot more attention!

from ipade.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.