[mirotalk] - update client.js
This commit is contained in:
+14
-14
@@ -17,20 +17,6 @@ const friendChatAvatar = "/images/friend.svg";
|
||||
const notifyBySound = true; // turn on-off sound notifications
|
||||
const isMobileDevice = DetectRTC.isMobileDevice;
|
||||
|
||||
// https://github.com/wooorm/gemoji/blob/main/support.md
|
||||
var map = {
|
||||
"<3": "\u2764\uFE0F",
|
||||
"</3": "\uD83D\uDC94",
|
||||
":D": "\uD83D\uDE00",
|
||||
":)": "\uD83D\uDE03",
|
||||
";)": "\uD83D\uDE09",
|
||||
":(": "\uD83D\uDE12",
|
||||
":p": "\uD83D\uDE1B",
|
||||
";p": "\uD83D\uDE1C",
|
||||
":'(": "\uD83D\uDE22",
|
||||
":+1:": "\uD83D\uDC4D",
|
||||
}; //...
|
||||
|
||||
var startTime;
|
||||
var elapsedTime;
|
||||
var mirotalkTheme = "neon"; // neon - dark - ghost ...
|
||||
@@ -61,6 +47,20 @@ var peers = {}; // keep track of our peer connections, indexed by peer_id == soc
|
||||
var peerMediaElements = {}; // keep track of our <video> tags, indexed by peer_id
|
||||
var iceServers = [{ urls: "stun:stun.l.google.com:19302" }]; // backup iceServers
|
||||
|
||||
// https://github.com/wooorm/gemoji/blob/main/support.md
|
||||
var map = {
|
||||
"<3": "\u2764\uFE0F",
|
||||
"</3": "\uD83D\uDC94",
|
||||
":D": "\uD83D\uDE00",
|
||||
":)": "\uD83D\uDE03",
|
||||
";)": "\uD83D\uDE09",
|
||||
":(": "\uD83D\uDE12",
|
||||
":p": "\uD83D\uDE1B",
|
||||
";p": "\uD83D\uDE1C",
|
||||
":'(": "\uD83D\uDE22",
|
||||
":+1:": "\uD83D\uDC4D",
|
||||
}; //...
|
||||
|
||||
// =====================================================
|
||||
// Get peer info using DetecRTC
|
||||
// =====================================================
|
||||
|
||||
Reference in New Issue
Block a user