[mirotalksfu] - #180 start shared media on join room

هذا الالتزام موجود في:
Miroslav Pejic
2024-11-07 20:12:13 +01:00
الأصل 1322e8194f
التزام 5676cfbd2c
5 ملفات معدلة مع 32 إضافات و9 حذوفات

عرض الملف

@@ -67,6 +67,9 @@ module.exports = class Room {
this.polls = [];
this.isHostProtected = config.host.protected;
// Share Media
this.shareMediaData = {};
}
// ####################################################
@@ -95,10 +98,19 @@ module.exports = class Room {
redirect: this.redirect,
videoAIEnabled: this.videoAIEnabled,
thereIsPolls: this.thereIsPolls(),
shareMediaData: this.shareMediaData,
peers: JSON.stringify([...this.peers]),
};
}
// ##############################################
// SHARE MEDIA
// ##############################################
updateShareMedia(data) {
this.shareMediaData = data;
}
// ##############################################
// POLLS
// ##############################################