|
@@ -7,6 +7,7 @@ import { Provider } from 'react-redux';
|
7
|
7
|
import { I18nextProvider } from 'react-i18next';
|
8
|
8
|
import { AtlasKitThemeProvider } from '@atlaskit/theme';
|
9
|
9
|
|
|
10
|
+import { createThumbnailOffsetParentIsNullEvent, sendAnalytics } from '../../../react/features/analytics';
|
10
|
11
|
import { i18next } from '../../../react/features/base/i18n';
|
11
|
12
|
import {
|
12
|
13
|
JitsiParticipantConnectionStatus
|
|
@@ -512,11 +513,31 @@ RemoteVideo.prototype.addRemoteStreamElement = function(stream) {
|
512
|
513
|
|
513
|
514
|
$(streamElement).hide();
|
514
|
515
|
|
515
|
|
- // If the container is currently visible
|
516
|
|
- // we attach the stream to the element.
|
517
|
|
- if (!isVideo || (this.container.offsetParent !== null && isVideo)) {
|
518
|
|
- this.waitForPlayback(streamElement, stream);
|
519
|
|
- stream.attach(streamElement);
|
|
516
|
+ this.waitForPlayback(streamElement, stream);
|
|
517
|
+ stream.attach(streamElement);
|
|
518
|
+
|
|
519
|
+ // TODO: Remove once we verify that this.container.offsetParent === null was the reason for not attached video
|
|
520
|
+ // streams to the thumbnail.
|
|
521
|
+ if (isVideo && this.container.offsetParent === null) {
|
|
522
|
+ sendAnalytics(createThumbnailOffsetParentIsNullEvent(this.id));
|
|
523
|
+ const parentNodesDisplayProps = [
|
|
524
|
+ '#filmstripRemoteVideosContainer',
|
|
525
|
+ '#filmstripRemoteVideos',
|
|
526
|
+ '#remoteVideos',
|
|
527
|
+ '.filmstrip',
|
|
528
|
+ '#videospace',
|
|
529
|
+ '#videoconference_page',
|
|
530
|
+ '#react'
|
|
531
|
+ ].map(selector => `${selector} - ${$(selector).css('display')}`);
|
|
532
|
+ const videoConferencePageParent = $('#videoconference_page').parent();
|
|
533
|
+ const reactDiv = document.getElementById('react');
|
|
534
|
+
|
|
535
|
+ parentNodesDisplayProps.push(
|
|
536
|
+ `${videoConferencePageParent.attr('class')} - ${videoConferencePageParent.css('display')}`);
|
|
537
|
+ parentNodesDisplayProps.push(`this.container - ${this.$container.css('display')}`);
|
|
538
|
+ logger.debug(`this.container.offsetParent is null [user: ${this.id}, ${
|
|
539
|
+ parentNodesDisplayProps.join(', ')}, #react.offsetParent - ${
|
|
540
|
+ reactDiv && reactDiv.offsetParent !== null ? 'not null' : 'null'}]`);
|
520
|
541
|
}
|
521
|
542
|
|
522
|
543
|
if (!isVideo) {
|