mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
prioritize participants with screen shares support local screen share track auto pin screen share support screen share for large video ensure fake screen share participants are sorted fix local screen share in vertical filmstrip fix local screen share in tile mode use FakeScreenShareParticipant component for screen share thumbnails ensure changes are behind feature flag and update jsdocs fix bug where local screen share was not rendering update receiver constraints to include SS source names remove fake ss participant creation on track update fix: handle screenshare muted change and track removal refactor: update key values for sortedFakeScreenShareParticipants address PR comments refactor getter for screenshare tracks rename state to sortedRemoteFakeScreenShareParticipants
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
// @flow
|
|
|
|
import { ReducerRegistry } from '../base/redux';
|
|
|
|
import {
|
|
FAKE_SCREEN_SHARE_REMOTE_PARTICIPANTS_UPDATED,
|
|
SCREEN_SHARE_REMOTE_PARTICIPANTS_UPDATED,
|
|
SET_TILE_VIEW
|
|
} from './actionTypes';
|
|
|
|
const DEFAULT_STATE = {
|
|
remoteScreenShares: [],
|
|
|
|
/**
|
|
* The indicator which determines whether the video layout should display
|
|
* video thumbnails in a tiled layout.
|
|
*
|
|
* Note: undefined means that the user hasn't requested anything in particular yet, so
|
|
* we use our auto switching rules.
|
|
*
|
|
* @public
|
|
* @type {boolean}
|
|
*/
|
|
tileViewEnabled: undefined
|
|
};
|
|
|
|
const STORE_NAME = 'features/video-layout';
|
|
|
|
ReducerRegistry.register(STORE_NAME, (state = DEFAULT_STATE, action) => {
|
|
switch (action.type) {
|
|
case FAKE_SCREEN_SHARE_REMOTE_PARTICIPANTS_UPDATED:
|
|
case SCREEN_SHARE_REMOTE_PARTICIPANTS_UPDATED: {
|
|
return {
|
|
...state,
|
|
remoteScreenShares: action.participantIds
|
|
};
|
|
}
|
|
|
|
case SET_TILE_VIEW:
|
|
return {
|
|
...state,
|
|
tileViewEnabled: action.enabled
|
|
};
|
|
}
|
|
|
|
return state;
|
|
});
|