mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
		
						commit
						b4815d1a07
					
				@ -26,6 +26,15 @@ import dis from '../../../dispatcher';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import SettingsStore from "../../../settings/SettingsStore";
 | 
					import SettingsStore from "../../../settings/SettingsStore";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getFullScreenElement() {
 | 
				
			||||||
 | 
					    return (
 | 
				
			||||||
 | 
					        document.fullscreenElement ||
 | 
				
			||||||
 | 
					        document.mozFullScreenElement ||
 | 
				
			||||||
 | 
					        document.webkitFullscreenElement ||
 | 
				
			||||||
 | 
					        document.msFullscreenElement
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = React.createClass({
 | 
					module.exports = React.createClass({
 | 
				
			||||||
    displayName: 'VideoView',
 | 
					    displayName: 'VideoView',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -88,7 +97,7 @@ module.exports = React.createClass({
 | 
				
			|||||||
                        element.msRequestFullscreen
 | 
					                        element.msRequestFullscreen
 | 
				
			||||||
                    );
 | 
					                    );
 | 
				
			||||||
                    requestMethod.call(element);
 | 
					                    requestMethod.call(element);
 | 
				
			||||||
                } else {
 | 
					                } else if (getFullScreenElement()) {
 | 
				
			||||||
                    const exitMethod = (
 | 
					                    const exitMethod = (
 | 
				
			||||||
                        document.exitFullscreen ||
 | 
					                        document.exitFullscreen ||
 | 
				
			||||||
                        document.mozCancelFullScreen ||
 | 
					                        document.mozCancelFullScreen ||
 | 
				
			||||||
@ -108,10 +117,7 @@ module.exports = React.createClass({
 | 
				
			|||||||
        const VideoFeed = sdk.getComponent('voip.VideoFeed');
 | 
					        const VideoFeed = sdk.getComponent('voip.VideoFeed');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // if we're fullscreen, we don't want to set a maxHeight on the video element.
 | 
					        // if we're fullscreen, we don't want to set a maxHeight on the video element.
 | 
				
			||||||
        const fullscreenElement = (document.fullscreenElement ||
 | 
					        const maxVideoHeight = getFullScreenElement() ? null : this.props.maxHeight;
 | 
				
			||||||
                 document.mozFullScreenElement ||
 | 
					 | 
				
			||||||
                 document.webkitFullscreenElement);
 | 
					 | 
				
			||||||
        const maxVideoHeight = fullscreenElement ? null : this.props.maxHeight;
 | 
					 | 
				
			||||||
        const localVideoFeedClasses = classNames("mx_VideoView_localVideoFeed",
 | 
					        const localVideoFeedClasses = classNames("mx_VideoView_localVideoFeed",
 | 
				
			||||||
            { "mx_VideoView_localVideoFeed_flipped":
 | 
					            { "mx_VideoView_localVideoFeed_flipped":
 | 
				
			||||||
                SettingsStore.getValue('VideoView.flipVideoHorizontally'),
 | 
					                SettingsStore.getValue('VideoView.flipVideoHorizontally'),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user