|
@@ -15,18 +15,6 @@ export const ORIENTATION = {
|
15
|
15
|
PORTRAIT: 'portrait'
|
16
|
16
|
};
|
17
|
17
|
|
18
|
|
-/**
|
19
|
|
- * A mapping of orientations to a class that should fit the
|
20
|
|
- * {@code LargeVideoBackground} into its container.
|
21
|
|
- *
|
22
|
|
- * @private
|
23
|
|
- * @type {Object}
|
24
|
|
- */
|
25
|
|
-const ORIENTATION_TO_CLASS = {
|
26
|
|
- [ORIENTATION.LANDSCAPE]: 'fit-full-width',
|
27
|
|
- [ORIENTATION.PORTRAIT]: 'fit-full-height'
|
28
|
|
-};
|
29
|
|
-
|
30
|
18
|
/**
|
31
|
19
|
* The type of the React {@code Component} props of
|
32
|
20
|
* {@link LargeVideoBackgroundCanvas}.
|
|
@@ -150,14 +138,11 @@ export class LargeVideoBackground extends Component<Props> {
|
150
|
138
|
const {
|
151
|
139
|
hidden,
|
152
|
140
|
mirror,
|
153
|
|
- orientationFit,
|
154
|
141
|
showLocalProblemFilter,
|
155
|
142
|
showRemoteProblemFilter
|
156
|
143
|
} = this.props;
|
157
|
|
- const orientationClass = orientationFit
|
158
|
|
- ? ORIENTATION_TO_CLASS[orientationFit] : '';
|
159
|
144
|
const classNames = `large-video-background ${mirror ? 'flip-x' : ''} ${
|
160
|
|
- hidden ? 'invisible' : ''} ${orientationClass} ${
|
|
145
|
+ hidden ? 'invisible' : ''} ${
|
161
|
146
|
showLocalProblemFilter ? 'videoProblemFilter' : ''} ${
|
162
|
147
|
showRemoteProblemFilter ? 'remoteVideoProblemFilter' : ''}`;
|
163
|
148
|
|