|
@@ -528,4 +528,25 @@ SmallVideo.prototype.waitForResolutionChange = function() {
|
528
|
528
|
};
|
529
|
529
|
};
|
530
|
530
|
|
|
531
|
+/**
|
|
532
|
+ * Initalizes any browser specific properties. Currently sets the overflow
|
|
533
|
+ * property for Qt browsers on Windows to hidden, thus fixing the following
|
|
534
|
+ * problem:
|
|
535
|
+ * Some browsers don't have full support of the object-fit property for the
|
|
536
|
+ * video element and when we set video object-fit to "cover" the video
|
|
537
|
+ * actually overflows the boundaries of its container, so it's important
|
|
538
|
+ * to indicate that the "overflow" should be hidden.
|
|
539
|
+ *
|
|
540
|
+ * Setting this property for all browsers will result in broken audio levels,
|
|
541
|
+ * which makes this a temporary solution, before reworking audio levels.
|
|
542
|
+ */
|
|
543
|
+SmallVideo.prototype.initBrowserSpecificProperties = function() {
|
|
544
|
+
|
|
545
|
+ var userAgent = window.navigator.userAgent;
|
|
546
|
+ if (userAgent.indexOf("QtWebEngine") > -1
|
|
547
|
+ && userAgent.indexOf("Windows") > -1) {
|
|
548
|
+ $('#' + this.videoSpanId).css("overflow", "hidden");
|
|
549
|
+ }
|
|
550
|
+};
|
|
551
|
+
|
531
|
552
|
export default SmallVideo;
|