mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-14 14:19:20 +08:00
Merge branch 'master' into fixes
This commit is contained in:
commit
30bd5b9ba9
4
public/css/chat.css
vendored
4
public/css/chat.css
vendored
@ -338,7 +338,7 @@ button:hover {
|
||||
padding: 12px;
|
||||
max-width: 100%;
|
||||
border-style: solid;
|
||||
border-width: 3px;
|
||||
border-width: 2px;
|
||||
border-color: var(--bloc-color);
|
||||
border-radius: 20px 20px 20px 5px;
|
||||
box-shadow: 6px 6px 12px #030506, -6px -6px 12px #23242a;
|
||||
@ -349,7 +349,7 @@ button:hover {
|
||||
background-color: rgb(47, 48, 52);
|
||||
color: #fff;
|
||||
border-style: solid;
|
||||
border-width: 3px;
|
||||
border-width: 2px;
|
||||
border-color: var(--bloc-color);
|
||||
border-radius: 20px 20px 5px 20px;
|
||||
box-shadow: 6px 6px 12px #030506, -6px -6px 12px #22232a;
|
||||
|
@ -32,6 +32,7 @@ var dataChannel = new Map();
|
||||
var VideoChat = {
|
||||
videoEnabled: true,
|
||||
audioEnabled: true,
|
||||
borderColor: `hsl(${Math.floor(Math.random() * 360)}, 70%, 80%)`,
|
||||
connected: new Map(),
|
||||
localICECandidates: {},
|
||||
socket: io(),
|
||||
@ -175,6 +176,8 @@ var VideoChat = {
|
||||
recieveCaptions(cleanedMessage);
|
||||
} else if (dataType === "tog:") {
|
||||
toggleSendCaptions();
|
||||
} else if (dataType === "clr:") {
|
||||
setStreamColor(uuid, cleanedMessage);
|
||||
}
|
||||
};
|
||||
// Called when dataChannel is successfully opened
|
||||
|
Loading…
Reference in New Issue
Block a user