mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-11 03:52:32 +00:00
* feat(multi-stream-support) Add screenshare as a second video track to the call. This feature is behind a sendMultipleVideoStreams config.js flag. sourceNameSignaling flag also needs to enabled. Sending multiple tracks is currently supported only on endpoints running in unified plan mode. However, clients with source-name signaling enabled and running in plan-b can still receive multiple streams . * squash: check if there is an existing track before adding camera/desktop * squash: enable multi-stream only on unified plan endpoints.
39 lines
842 B
JavaScript
39 lines
842 B
JavaScript
|
|
import { ReducerRegistry } from '../base/redux';
|
|
|
|
import {
|
|
SET_SCREEN_AUDIO_SHARE_STATE,
|
|
SET_SCREENSHARE_CAPTURE_FRAME_RATE,
|
|
SET_SCREENSHARE_TRACKS
|
|
} from './actionTypes';
|
|
|
|
/**
|
|
* Reduces the Redux actions of the feature features/screen-share.
|
|
*/
|
|
ReducerRegistry.register('features/screen-share', (state = {}, action) => {
|
|
const { captureFrameRate, isSharingAudio, desktopAudioTrack } = action;
|
|
|
|
switch (action.type) {
|
|
case SET_SCREEN_AUDIO_SHARE_STATE:
|
|
return {
|
|
...state,
|
|
isSharingAudio
|
|
};
|
|
|
|
case SET_SCREENSHARE_CAPTURE_FRAME_RATE:
|
|
return {
|
|
...state,
|
|
captureFrameRate
|
|
};
|
|
|
|
case SET_SCREENSHARE_TRACKS:
|
|
return {
|
|
...state,
|
|
desktopAudioTrack
|
|
};
|
|
|
|
default:
|
|
return state;
|
|
}
|
|
});
|