fix(iFrame): Make resizeLargeVideo only available on web
This commit is contained in:
parent
89cd6e8e3e
commit
794713b930
|
@ -15,7 +15,7 @@ import { VIDEO_TYPE } from '../../../react/features/base/media';
|
|||
import { CHAT_SIZE } from '../../../react/features/chat';
|
||||
import {
|
||||
updateKnownLargeVideoResolution
|
||||
} from '../../../react/features/large-video';
|
||||
} from '../../../react/features/large-video/actions';
|
||||
import { PresenceLabel } from '../../../react/features/presence-status';
|
||||
/* eslint-enable no-unused-vars */
|
||||
import UIEvents from '../../../service/UI/UIEvents';
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import type { Dispatch } from 'redux';
|
||||
|
||||
import VideoLayout from '../../../modules/UI/videolayout/VideoLayout';
|
||||
import {
|
||||
createSelectParticipantFailedEvent,
|
||||
sendAnalytics
|
||||
|
@ -19,8 +18,6 @@ import {
|
|||
UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION
|
||||
} from './actionTypes';
|
||||
|
||||
declare var APP: Object;
|
||||
|
||||
/**
|
||||
* Captures a screenshot of the video displayed on the large video.
|
||||
*
|
||||
|
@ -72,27 +69,6 @@ export function captureLargeVideoScreenshot() {
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Resizes the large video container based on the dimensions provided.
|
||||
*
|
||||
* @param {number} width - Width that needs to be applied on the large video container.
|
||||
* @param {number} height - Height that needs to be applied on the large video container.
|
||||
* @returns {Function}
|
||||
*/
|
||||
export function resizeLargeVideo(width: number, height: number) {
|
||||
return (dispatch: Dispatch<any>, getState: Function) => {
|
||||
const state = getState();
|
||||
const largeVideo = state['features/large-video'];
|
||||
|
||||
if (largeVideo) {
|
||||
const largeVideoContainer = VideoLayout.getLargeVideo();
|
||||
|
||||
largeVideoContainer.updateContainerSize(width, height);
|
||||
largeVideoContainer.resize();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Signals conference to select a participant.
|
||||
*
|
|
@ -0,0 +1,3 @@
|
|||
// @flow
|
||||
|
||||
export * from './actions.any';
|
|
@ -0,0 +1,28 @@
|
|||
// @flow
|
||||
|
||||
import type { Dispatch } from 'redux';
|
||||
|
||||
import VideoLayout from '../../../modules/UI/videolayout/VideoLayout';
|
||||
|
||||
export * from './actions.any';
|
||||
|
||||
/**
|
||||
* Resizes the large video container based on the dimensions provided.
|
||||
*
|
||||
* @param {number} width - Width that needs to be applied on the large video container.
|
||||
* @param {number} height - Height that needs to be applied on the large video container.
|
||||
* @returns {Function}
|
||||
*/
|
||||
export function resizeLargeVideo(width: number, height: number) {
|
||||
return (dispatch: Dispatch<any>, getState: Function) => {
|
||||
const state = getState();
|
||||
const largeVideo = state['features/large-video'];
|
||||
|
||||
if (largeVideo) {
|
||||
const largeVideoContainer = VideoLayout.getLargeVideo();
|
||||
|
||||
largeVideoContainer.updateContainerSize(width, height);
|
||||
largeVideoContainer.resize();
|
||||
}
|
||||
};
|
||||
}
|
|
@ -5,7 +5,7 @@ import debounce from 'lodash/debounce';
|
|||
import { pinParticipant, getPinnedParticipant } from '../base/participants';
|
||||
import { StateListenerRegistry, equals } from '../base/redux';
|
||||
import { isFollowMeActive } from '../follow-me';
|
||||
import { selectParticipant } from '../large-video';
|
||||
import { selectParticipant } from '../large-video/actions';
|
||||
|
||||
import { setParticipantsWithScreenShare } from './actions';
|
||||
|
||||
|
|
Loading…
Reference in New Issue