Fix some typos and wrong code in bbb-webrtc-sfu
This commit is contained in:
parent
08a86d2a5f
commit
b38a096ed5
@ -113,7 +113,7 @@ module.exports = class BigBlueButtonGW extends EventEmitter {
|
||||
|
||||
writeMeetingKey(meetingId, message, callback) {
|
||||
const EXPIRE_TIME = config.get('redisExpireTime');
|
||||
if (!this.client) {
|
||||
if (!this.publisher) {
|
||||
this.publisher = new RedisWrapper();
|
||||
this.publisher.startPublisher();
|
||||
}
|
||||
|
@ -71,13 +71,11 @@ module.exports = class ConnectionManager {
|
||||
const screenshare = await this._bbbGW.addSubscribeChannel(C.FROM_SCREENSHARE);
|
||||
const video = await this._bbbGW.addSubscribeChannel(C.FROM_VIDEO);
|
||||
const audio = await this._bbbGW.addSubscribeChannel(C.FROM_AUDIO);
|
||||
const toAkka = await this._bbbGW.addSubscribeChannel(C.TO_AKKA_APPS);
|
||||
|
||||
const emitFunk = (data) => {
|
||||
this._emitter.emit('response', data);
|
||||
};
|
||||
|
||||
toAkka.on(C.REDIS_MESSAGE, emitFunk);
|
||||
screenshare.on(C.REDIS_MESSAGE, emitFunk);
|
||||
video.on(C.REDIS_MESSAGE, emitFunk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user