|
|
@@ -419,9 +419,9 @@ JitsiConference.prototype.sendTones = function (tones, duration, pause) {
|
|
419
|
419
|
* Returns true if the recording is supproted and false if not.
|
|
420
|
420
|
*/
|
|
421
|
421
|
JitsiConference.prototype.isRecordingSupported = function () {
|
|
422
|
|
- // if(this.room)
|
|
423
|
|
- // return this.room.isRecordingSupported();
|
|
424
|
|
- // return false;
|
|
|
422
|
+ if(this.room)
|
|
|
423
|
+ return this.room.isRecordingSupported();
|
|
|
424
|
+ return false;
|
|
425
|
425
|
};
|
|
426
|
426
|
|
|
427
|
427
|
/**
|
|
|
@@ -429,18 +429,18 @@ JitsiConference.prototype.isRecordingSupported = function () {
|
|
429
|
429
|
* and "off" if the recording is not started.
|
|
430
|
430
|
*/
|
|
431
|
431
|
JitsiConference.prototype.getRecordingState = function () {
|
|
432
|
|
- // if(this.room)
|
|
433
|
|
- // return this.room.getRecordingState();
|
|
434
|
|
- // return "off";
|
|
|
432
|
+ if(this.room)
|
|
|
433
|
+ return this.room.getRecordingState();
|
|
|
434
|
+ return "off";
|
|
435
|
435
|
}
|
|
436
|
436
|
|
|
437
|
437
|
/**
|
|
438
|
438
|
* Returns the url of the recorded video.
|
|
439
|
439
|
*/
|
|
440
|
440
|
JitsiConference.prototype.getRecordingURL = function () {
|
|
441
|
|
- // if(this.room)
|
|
442
|
|
- // return this.room.getRecordingURL();
|
|
443
|
|
- // return null;
|
|
|
441
|
+ if(this.room)
|
|
|
442
|
+ return this.room.getRecordingURL();
|
|
|
443
|
+ return null;
|
|
444
|
444
|
}
|
|
445
|
445
|
|
|
446
|
446
|
/**
|
|
|
@@ -448,8 +448,8 @@ JitsiConference.prototype.getRecordingURL = function () {
|
|
448
|
448
|
* @param token a token for authentication.
|
|
449
|
449
|
*/
|
|
450
|
450
|
JitsiConference.prototype.toggleRecording = function (token) {
|
|
451
|
|
- // if(this.room)
|
|
452
|
|
- // this.room.toggleRecording(token);
|
|
|
451
|
+ if(this.room)
|
|
|
452
|
+ this.room.toggleRecording(token);
|
|
453
|
453
|
}
|
|
454
|
454
|
|
|
455
|
455
|
/**
|
|
|
@@ -493,6 +493,9 @@ function setupListeners(conference) {
|
|
493
|
493
|
conference.room.addListener(XMPPEvents.CONNECTION_INTERRUPTED, function () {
|
|
494
|
494
|
conference.eventEmitter.emit(JitsiConferenceEvents.CONNECTION_INTERRUPTED);
|
|
495
|
495
|
});
|
|
|
496
|
+ conference.room.addListener(XMPPEvents.RECORDING_STATE_CHANGED, function () {
|
|
|
497
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.RECORDING_STATE_CHANGED);
|
|
|
498
|
+ });
|
|
496
|
499
|
|
|
497
|
500
|
conference.room.addListener(XMPPEvents.CONNECTION_RESTORED, function () {
|
|
498
|
501
|
conference.eventEmitter.emit(JitsiConferenceEvents.CONNECTION_RESTORED);
|