Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Isolate object-fit fix for Windows Qt browser only
yanasda0898a06675
diff --git a/css/videolayout_default.css b/css/videolayout_default.cssindex 378036d890..aa3943f521 100644--- a/css/videolayout_default.css+++ b/css/videolayout_default.css@@ -41,13 +41,6 @@background-size: contain;border-radius:1px;border: 1px solid #212425;- /**- * Some browsers don't have full support of the object-fit property for the- * video element and when we set video object-fit to "cover" the video- * actually overflows the boundaries of its container, so it's important- * to indicate that the "overflow" should be hidden.- */- overflow: hidden;}#remoteVideos .videocontainer.videoContainerFocused {diff --git a/modules/UI/videolayout/LocalVideo.js b/modules/UI/videolayout/LocalVideo.jsindex f0611ee489..2351e3637a 100644--- a/modules/UI/videolayout/LocalVideo.js+++ b/modules/UI/videolayout/LocalVideo.js@@ -21,6 +21,8 @@ function LocalVideo(VideoLayout, emitter) {return APP.conference.getMyUserId();}});+ this.initBrowserSpecificProperties();+SmallVideo.call(this, VideoLayout);}diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex 487c90cb02..62e28e4eb0 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -27,6 +27,9 @@ RemoteVideo.prototype.constructor = RemoteVideo;RemoteVideo.prototype.addRemoteVideoContainer = function() {this.container = RemoteVideo.createContainer(this.videoSpanId);++ this.initBrowserSpecificProperties();+if (APP.conference.isModerator) {this.addRemoteVideoMenu();}diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex 27279cb752..dce35c271e 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -528,4 +528,25 @@ SmallVideo.prototype.waitForResolutionChange = function() {};};+/**+ * Initalizes any browser specific properties. Currently sets the overflow+ * property for Qt browsers on Windows to hidden, thus fixing the following+ * problem:+ * Some browsers don't have full support of the object-fit property for the+ * video element and when we set video object-fit to "cover" the video+ * actually overflows the boundaries of its container, so it's important+ * to indicate that the "overflow" should be hidden.+ *+ * Setting this property for all browsers will result in broken audio levels,+ * which makes this a temporary solution, before reworking audio levels.+ */+SmallVideo.prototype.initBrowserSpecificProperties = function() {++ var userAgent = window.navigator.userAgent;+ if (userAgent.indexOf("QtWebEngine") > -1+ && userAgent.indexOf("Windows") > -1) {+ $('#' + this.videoSpanId).css("overflow", "hidden");+ }+};+export default SmallVideo;