This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'gh-soichih/gh-pages' into gh-pages
* gh-soichih/gh-pages: fixed overrides mechanism to allow custom videochat url as well as custom jitsi room name added cid to the ip address key updated the way opened rooms are kept up.
- Loading branch information
Showing
5 changed files
with
102 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
body, html { | ||
margin: 0; | ||
padding: 0; | ||
height: 100%; | ||
} | ||
#meet { | ||
height: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<script src='https://meet.jit.si/external_api.js'></script> | ||
<script type="text/javascript" charset="utf-8" src="assets/js/reconnecting-websocket.min.js"></script> | ||
<link rel="stylesheet" type="text/css" href="assets/css/room.css"> | ||
</head> | ||
<body> | ||
<div id="meet"/> | ||
<script> | ||
let hash = location.hash.substring(1); //jitsi room name | ||
let id = hash.split(".")[0]; | ||
let roomName = hash.split(".")[1]; | ||
let cid = Math.random().toString(); //client id | ||
|
||
if(!roomName) alert("no room name set in hash"); | ||
|
||
console.log(roomName); | ||
const api = new JitsiMeetExternalAPI("meet.jit.si", { | ||
roomName, | ||
parentNode: document.querySelector('#meet') | ||
}) | ||
|
||
let wss = new ReconnectingWebSocket("wss://dev1.soichi.us/ohbm2020/"); | ||
wss.onopen = () => { | ||
wss.send(JSON.stringify({action: "jit", id, cid})); | ||
} | ||
window.addEventListener("beforeunload", function(evt) { | ||
wss.send(JSON.stringify({action: "jitclose", id, cid})); | ||
}); | ||
</script> | ||
</body> | ||
</html> |