Skip to content

Commit

Permalink
lots of changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deleolajide committed Mar 22, 2020
1 parent 3577d0d commit e1171ca
Show file tree
Hide file tree
Showing 117 changed files with 296,938 additions and 1,596 deletions.
4 changes: 2 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
call mvn clean package

copy ofmeet\target\ofmeet.jar C:\openfire_4_5_1\plugins\ofmeet.jar
copy offocus\target\offocus.jar C:\openfire_4_5_1\plugins\offocus.jar
rem copy ofmeet\target\ofmeet.jar C:\openfire_4_5_1\plugins\ofmeet.jar
rem copy offocus\target\offocus.jar C:\openfire_4_5_1\plugins\offocus.jar
copy pade\target\pade.jar C:\openfire_4_5_1\plugins\pade.jar

pause
53 changes: 14 additions & 39 deletions ofmeet/classes/jitsi-meet/conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ export default {
* the tracks won't exist).
*/
_localTracksInitialized: false,
isModerator: false,
isSharingScreen: false,

/**
Expand Down Expand Up @@ -926,14 +925,6 @@ export default {
this.muteVideo(!this.isLocalVideoMuted(), showUI);
},

/**
* Retrieve list of conference participants (without local user).
* @returns {JitsiParticipant[]}
*/
listMembers() {
return room.getParticipants();
},

/**
* Retrieve list of ids of conference participants (without local user).
* @returns {string[]}
Expand All @@ -953,6 +944,16 @@ export default {
return user && user.isModerator();
},

/**
* Retrieve list of conference participants (without local user).
* @returns {JitsiParticipant[]}
*
* NOTE: Used by jitsi-meet-torture!
*/
listMembers() {
return room.getParticipants();
},

get membersCount() {
return room.getParticipants().length + 1;
},
Expand Down Expand Up @@ -1425,6 +1426,9 @@ export default {
}

this._stopProxyConnection();
if (config.enableScreenshotCapture) {
APP.store.dispatch(toggleScreenshotCaptureEffect(false));
}

// It can happen that presenter GUM is in progress while screensharing is being turned off. Here it needs to
// wait for that GUM to be resolved in order to prevent leaking the presenter track(this.localPresenterVideo
Expand Down Expand Up @@ -1460,9 +1464,6 @@ export default {
} else {
promise = promise.then(() => this.useVideoStream(null));
}
if (config.enableScreenshotCapture) {
APP.store.dispatch(toggleScreenshotCaptureEffect(false));
}

return promise.then(
() => {
Expand Down Expand Up @@ -1894,9 +1895,6 @@ export default {

logger.log(`USER ${id} connnected:`, user);
APP.UI.addUser(user);

// check the roles for the new user and reflect them
APP.UI.updateUserRole(user);
});

room.on(JitsiConferenceEvents.USER_LEFT, (id, user) => {
Expand Down Expand Up @@ -1927,19 +1925,8 @@ export default {
logger.info(`My role changed, new role: ${role}`);

APP.store.dispatch(localParticipantRoleChanged(role));

if (this.isModerator !== room.isModerator()) {
this.isModerator = room.isModerator();
APP.UI.updateLocalRole(room.isModerator());
}
} else {
APP.store.dispatch(participantRoleChanged(id, role));

const user = room.getParticipantById(id);

if (user) {
APP.UI.updateUserRole(user);
}
}
});

Expand Down Expand Up @@ -2287,7 +2274,7 @@ export default {
})
.then(stream => this.useAudioStream(stream))
.then(() => {
logger.log('switched local audio device');
logger.log(`switched local audio device: ${this.localAudio?.getDeviceId()}`);

this._updateAudioDeviceId();
})
Expand Down Expand Up @@ -2664,12 +2651,6 @@ export default {
// audio devices detected or if the local audio stream already exists.
const available = audioDeviceCount > 0 || Boolean(this.localAudio);

logger.debug(
`Microphone button enabled: ${available}`,
`local audio: ${this.localAudio}`,
`audio devices: ${audioMediaDevices}`,
`device count: ${audioDeviceCount}`);

APP.store.dispatch(setAudioAvailable(available));
APP.API.notifyAudioAvailabilityChanged(available);
},
Expand All @@ -2690,12 +2671,6 @@ export default {
// config).
const available = videoDeviceCount > 0 || Boolean(this.localVideo);

logger.debug(
`Camera button enabled: ${available}`,
`local video: ${this.localVideo}`,
`video devices: ${videoMediaDevices}`,
`device count: ${videoDeviceCount}`);

APP.store.dispatch(setVideoAvailable(available));
APP.API.notifyVideoAvailabilityChanged(available);
},
Expand Down
4 changes: 4 additions & 0 deletions ofmeet/classes/jitsi-meet/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ var config = {

// Disable measuring of audio levels.
// disableAudioLevels: false,
// audioLevelsInterval: 200,

// Enabling this will run the lib-jitsi-meet no audio detection module which
// will notify the user if the current selected microphone has no audio
Expand Down Expand Up @@ -301,6 +302,9 @@ var config = {
// estimation tests.
// gatherStats: false,

// The interval at which PeerConnection.getStats() is called. Defaults to 10000
// pcStatsInterval: 10000,

// To enable sending statistics to callstats.io you must provide the
// Application ID and Secret.
// callStatsID: '',
Expand Down
11 changes: 11 additions & 0 deletions ofmeet/classes/jitsi-meet/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ import {

const logger = require('jitsi-meet-logger').getLogger(__filename);

/**
* The feature announced so we can distinguish jibri participants.
*
* @type {string}
*/
export const DISCO_JIBRI_FEATURE = 'http://jitsi.org/protocol/jibri';

/**
* Checks if we have data to use attach instead of connect. If we have the data
* executes attach otherwise check if we have to wait for the data. If we have
Expand Down Expand Up @@ -91,6 +98,10 @@ function connect(id, password, roomName) {
jwt && issuer && issuer !== 'anonymous' ? jwt : undefined,
connectionConfig);

if (config.iAmRecorder) {
connection.addFeature(DISCO_JIBRI_FEATURE);
}

return new Promise((resolve, reject) => {
connection.addEventListener(
JitsiConnectionEvents.CONNECTION_ESTABLISHED,
Expand Down
2 changes: 1 addition & 1 deletion ofmeet/classes/jitsi-meet/css/all.css

Large diffs are not rendered by default.

Loading

0 comments on commit e1171ca

Please sign in to comment.