Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(multi-stream): Set mediaType to screenshare on SS tracks. Fixes an issue where camera video doesn't get requested by RN clients when the remote ep starts SS first before turning on their camera.

Jaya Allamsettyda9b5a91568f
diff --git a/react/features/base/tracks/actions.ts b/react/features/base/tracks/actions.ts
index 9c038fbf8e..4bf73e27f5 100644
--- a/react/features/base/tracks/actions.ts
+++ b/react/features/base/tracks/actions.ts
@@ -5,7 +5,7 @@ import { showErrorNotification, showNotification } from '../../notifications/act
import { NOTIFICATION_TIMEOUT, NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
import { getCurrentConference } from '../conference/functions';
import { IJitsiConference } from '../conference/reducer';
-import { getMultipleVideoSendingSupportFeatureFlag } from '../config/functions.any';
+import { getMultipleVideoSendingSupportFeatureFlag, getMultipleVideoSupportFeatureFlag } from '../config/functions.any';
import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
@@ -407,10 +407,11 @@ export function trackAdded(track: any) {
JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED,
(type: VideoType) => dispatch(trackVideoTypeChanged(track, type)));
- // participantId
const local = track.isLocal();
- const mediaType = getMultipleVideoSendingSupportFeatureFlag(getState())
- && track.getVideoType() === VIDEO_TYPE.DESKTOP
+ const isVirtualScreenshareParticipantCreated = local
+ ? getMultipleVideoSendingSupportFeatureFlag(getState())
+ : getMultipleVideoSupportFeatureFlag(getState());
+ const mediaType = track.getVideoType() === VIDEO_TYPE.DESKTOP && isVirtualScreenshareParticipantCreated
? MEDIA_TYPE.SCREENSHARE
: track.getType();
let isReceivingData, noDataFromSourceNotificationInfo, participantId;