Skip to content

Commit

Permalink
feat(base/tracks): removed pip limitation while screensharing
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinteodor committed Dec 6, 2024
1 parent 5a45ebb commit 8422ebd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions react/features/base/tracks/actions.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { IReduxState, IStore } from '../../app/types';
import { setPictureInPictureEnabled } from '../../mobile/picture-in-picture/functions';
import { showNotification } from '../../notifications/actions';
import { NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
import { PIP_WHILE_SCREEN_SHARING_ENABLED } from '../flags/constants';
import { getFeatureFlag } from '../flags/functions';
import JitsiMeetJS from '../lib-jitsi-meet';
import { setScreenshareMuted } from '../media/actions';

Expand Down Expand Up @@ -47,12 +45,6 @@ export function toggleScreensharing(enabled: boolean, _ignore1?: boolean, _ignor
* @returns {void}
*/
async function _startScreenSharing(dispatch: IStore['dispatch'], state: IReduxState) {
const pipWhileScreenSharingEnabled = getFeatureFlag(state, PIP_WHILE_SCREEN_SHARING_ENABLED, false);

if (!pipWhileScreenSharingEnabled) {
setPictureInPictureEnabled(false);
}

try {
const tracks: any[] = await JitsiMeetJS.createLocalTracks({ devices: [ 'desktop' ] });
const track = tracks[0];
Expand Down

0 comments on commit 8422ebd

Please sign in to comment.