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.
This commit is contained in:
parent
bb84c47e78
commit
da9b5a9156
|
@ -5,7 +5,7 @@ import { showErrorNotification, showNotification } from '../../notifications/act
|
||||||
import { NOTIFICATION_TIMEOUT, NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
|
import { NOTIFICATION_TIMEOUT, NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
|
||||||
import { getCurrentConference } from '../conference/functions';
|
import { getCurrentConference } from '../conference/functions';
|
||||||
import { IJitsiConference } from '../conference/reducer';
|
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';
|
import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';
|
||||||
// eslint-disable-next-line lines-around-comment
|
// eslint-disable-next-line lines-around-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
@ -407,10 +407,11 @@ export function trackAdded(track: any) {
|
||||||
JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED,
|
JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED,
|
||||||
(type: VideoType) => dispatch(trackVideoTypeChanged(track, type)));
|
(type: VideoType) => dispatch(trackVideoTypeChanged(track, type)));
|
||||||
|
|
||||||
// participantId
|
|
||||||
const local = track.isLocal();
|
const local = track.isLocal();
|
||||||
const mediaType = getMultipleVideoSendingSupportFeatureFlag(getState())
|
const isVirtualScreenshareParticipantCreated = local
|
||||||
&& track.getVideoType() === VIDEO_TYPE.DESKTOP
|
? getMultipleVideoSendingSupportFeatureFlag(getState())
|
||||||
|
: getMultipleVideoSupportFeatureFlag(getState());
|
||||||
|
const mediaType = track.getVideoType() === VIDEO_TYPE.DESKTOP && isVirtualScreenshareParticipantCreated
|
||||||
? MEDIA_TYPE.SCREENSHARE
|
? MEDIA_TYPE.SCREENSHARE
|
||||||
: track.getType();
|
: track.getType();
|
||||||
let isReceivingData, noDataFromSourceNotificationInfo, participantId;
|
let isReceivingData, noDataFromSourceNotificationInfo, participantId;
|
||||||
|
|
Loading…
Reference in New Issue