From f879ecfc706880d28da04e25fc5a93c892fb54ef Mon Sep 17 00:00:00 2001 From: Vlad Piersec Date: Tue, 5 Oct 2021 12:10:50 +0300 Subject: [PATCH] feat(large-video): Switch to tile view on large video double tap --- .../large-video/components/LargeVideo.web.js | 60 ++++++++++++++++++- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/react/features/large-video/components/LargeVideo.web.js b/react/features/large-video/components/LargeVideo.web.js index 66f91e384..57aca7747 100644 --- a/react/features/large-video/components/LargeVideo.web.js +++ b/react/features/large-video/components/LargeVideo.web.js @@ -7,6 +7,7 @@ import { connect } from '../../base/redux'; import { setColorAlpha } from '../../base/util'; import { SharedVideo } from '../../shared-video/components/web'; import { Captions } from '../../subtitles/'; +import { setTileView } from '../../video-layout/actions'; declare var interfaceConfig: Object; @@ -36,7 +37,12 @@ type Props = { * Used to determine the value of the autoplay attribute of the underlying * video element. */ - _noAutoPlayVideo: boolean + _noAutoPlayVideo: boolean, + + /** + * The Redux dispatch function. + */ + dispatch: Function } /** @@ -46,6 +52,19 @@ type Props = { * @extends Component */ class LargeVideo extends Component { + _tappedTimeout: ?TimeoutID + + /** + * Constructor of the component. + * + * @inheritdoc + */ + constructor(props) { + super(props); + + this._clearTapTimeout = this._clearTapTimeout.bind(this); + this._onDoubleTap = this._onDoubleTap.bind(this); + } /** * Implements React's {@link Component#render()}. @@ -71,7 +90,9 @@ class LargeVideo extends Component { -
+
@@ -90,6 +111,7 @@ class LargeVideo extends Component { */}