[mirotalksfu] - add collaborative whiteboard

هذا الالتزام موجود في:
Miroslav Pejic
2021-09-25 19:48:27 +02:00
الأصل a7e5be3289
التزام 5ce76141a3
6 ملفات معدلة مع 348 إضافات و12 حذوفات

عرض الملف

@@ -393,6 +393,22 @@ class RoomClient {
}.bind(this),
);
this.socket.on(
'wbCanvasToJson',
function (data) {
console.log('Received whiteboard canvas JSON');
JsonToWbCanvas(data);
}.bind(this),
);
this.socket.on(
'whiteboardAction',
function (data) {
console.log('Whiteboard action', data);
whiteboardAction(data, false);
}.bind(this),
);
this.socket.on(
'disconnect',
function () {
@@ -1029,7 +1045,6 @@ class RoomClient {
if (this.consumers.size > 0) {
return true;
}
this.userLog('info', 'No participants in the room', 'top-end');
return false;
}
@@ -1156,6 +1171,7 @@ class RoomClient {
sendMessage() {
if (!this.thereIsConsumers()) {
chatMessage.value = '';
this.userLog('info', 'No participants in the room', 'top-end');
return;
}
let peer_msg = this.formatMsg(chatMessage.value);