[mirotalksfu] - refactoring

هذا الالتزام موجود في:
Miroslav Pejic
2022-04-07 19:09:29 +02:00
الأصل de9cc15a68
التزام 5adf69d760
6 ملفات معدلة مع 9 إضافات و7 حذوفات

عرض الملف

@@ -135,6 +135,7 @@ Embedding a meeting into a service or app using an iframe.
```
---
## DigitalOcean
This application is running just for `demonstration purposes` on [DigitalOcean](https://m.do.co/c/1070207afbb1) `droplet Ubuntu 20.04 (LTS) x64 [1 vCPU - 1GB Ram]`, with [Ngnix](https://www.nginx.com/) and [Let's Encrypt](https://letsencrypt.org/).

عرض الملف

@@ -279,7 +279,7 @@ async function ngrokStart() {
let pu0 = data.tunnels[0].public_url;
let pu1 = data.tunnels[1].public_url;
let tunnel = pu0.startsWith('https') ? pu0 : pu1;
log.debug('Listening on', {
log.info('Listening on', {
hostConfig: hostCfg,
announced_ip: announcedIP,
server: host,
@@ -300,7 +300,7 @@ async function ngrokStart() {
// ####################################################
httpsServer.listen(config.listenPort, () => {
log.debug(
log.info(
`%c
███████╗██╗ ██████╗ ███╗ ██╗ ███████╗███████╗██████╗ ██╗ ██╗███████╗██████╗

عرض الملف

@@ -16,3 +16,5 @@ rm csr.pem
# https://www.sslchecker.com/certdecoder
```
For trusted certificate, take a look at [Let's Encrypt](https://letsencrypt.org/i) and [Certbot](https://certbot.eff.org/).

عرض الملف

@@ -14,7 +14,7 @@
"url": "git+https://github.com/miroslavpejic85/mirotalksfu"
},
"author": "Miroslav Pejic",
"license": "AGPLv3",
"license": "AGPL-3.0",
"dependencies": {
"compression": "1.7.4",
"cors": "2.8.5",
@@ -23,8 +23,8 @@
"mediasoup": "3.9.9",
"mediasoup-client": "3.6.51",
"ngrok": "4.3.1",
"@sentry/node": "^6.19.4",
"@sentry/integrations": "^6.19.4",
"@sentry/node": "6.19.6",
"@sentry/integrations": "6.19.6",
"socket.io": "4.4.1",
"swagger-ui-express": "4.3.0",
"uuid": "8.3.2",

عرض الملف

@@ -963,7 +963,7 @@ function handleRoomClientEvents() {
show(stopVideoButton);
});
rc.on(RoomClient.EVENTS.stopVideo, () => {
console.log('Room Client stop audio');
console.log('Room Client stop video');
hide(stopVideoButton);
show(startVideoButton);
});

عرض الملف

@@ -1137,7 +1137,6 @@ class RoomClient {
this.getId(i.id).style.display = 'block';
handleAspectRatio();
console.log('[setVideoOff] Video-element-count', this.videoMediaContainer.childElementCount);
this.sound('joined');
}
removeVideoOff(peer_id) {