mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-01 21:30:29 +00:00
* fix(connection-status): remove unused participant connectionStatus. Always use trackStreamingStatus now that legacy endpoint based signaling has been removed. * remove the check for source-name signaling. Default to source-name signaling always. * Remove the check for multi-stream mode. Make that the default mode and remove the support for legacy SS mode. * Remove presenter mode. * update latest@lib-jitsi-meet
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import _ from 'lodash';
|
|
|
|
import { MEDIA_TYPE } from '../media/constants';
|
|
import { getScreenshareParticipantIds } from '../participants/functions';
|
|
import StateListenerRegistry from '../redux/StateListenerRegistry';
|
|
|
|
import { isLocalTrackMuted } from './functions';
|
|
|
|
/**
|
|
* Notifies when the list of currently sharing participants changes.
|
|
*/
|
|
StateListenerRegistry.register(
|
|
/* selector */ state => getScreenshareParticipantIds(state),
|
|
/* listener */ (participantIDs, store, previousParticipantIDs) => {
|
|
if (typeof APP !== 'object') {
|
|
return;
|
|
}
|
|
|
|
if (!_.isEqual(_.sortBy(participantIDs), _.sortBy(previousParticipantIDs))) {
|
|
APP.API.notifySharingParticipantsChanged(participantIDs);
|
|
}
|
|
}
|
|
);
|
|
|
|
|
|
/**
|
|
* Notifies when the local video mute state changes.
|
|
*/
|
|
StateListenerRegistry.register(
|
|
/* selector */ state => isLocalTrackMuted(state['features/base/tracks'], MEDIA_TYPE.VIDEO),
|
|
/* listener */ (muted, store, previousMuted) => {
|
|
if (typeof APP !== 'object') {
|
|
return;
|
|
}
|
|
|
|
if (muted !== previousMuted) {
|
|
APP.API.notifyVideoMutedStatusChanged(muted);
|
|
}
|
|
}
|
|
);
|