|
@@ -2,7 +2,6 @@
|
2
|
2
|
|
3
|
3
|
import type { Dispatch } from 'redux';
|
4
|
4
|
|
5
|
|
-import VideoLayout from '../../../modules/UI/videolayout/VideoLayout';
|
6
|
5
|
import {
|
7
|
6
|
createSelectParticipantFailedEvent,
|
8
|
7
|
sendAnalytics
|
|
@@ -19,8 +18,6 @@ import {
|
19
|
18
|
UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION
|
20
|
19
|
} from './actionTypes';
|
21
|
20
|
|
22
|
|
-declare var APP: Object;
|
23
|
|
-
|
24
|
21
|
/**
|
25
|
22
|
* Captures a screenshot of the video displayed on the large video.
|
26
|
23
|
*
|
|
@@ -72,27 +69,6 @@ export function captureLargeVideoScreenshot() {
|
72
|
69
|
};
|
73
|
70
|
}
|
74
|
71
|
|
75
|
|
-/**
|
76
|
|
- * Resizes the large video container based on the dimensions provided.
|
77
|
|
- *
|
78
|
|
- * @param {number} width - Width that needs to be applied on the large video container.
|
79
|
|
- * @param {number} height - Height that needs to be applied on the large video container.
|
80
|
|
- * @returns {Function}
|
81
|
|
- */
|
82
|
|
-export function resizeLargeVideo(width: number, height: number) {
|
83
|
|
- return (dispatch: Dispatch<any>, getState: Function) => {
|
84
|
|
- const state = getState();
|
85
|
|
- const largeVideo = state['features/large-video'];
|
86
|
|
-
|
87
|
|
- if (largeVideo) {
|
88
|
|
- const largeVideoContainer = VideoLayout.getLargeVideo();
|
89
|
|
-
|
90
|
|
- largeVideoContainer.updateContainerSize(width, height);
|
91
|
|
- largeVideoContainer.resize();
|
92
|
|
- }
|
93
|
|
- };
|
94
|
|
-}
|
95
|
|
-
|
96
|
72
|
/**
|
97
|
73
|
* Signals conference to select a participant.
|
98
|
74
|
*
|