You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RemoteVideo.js 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. /* global $, APP, interfaceConfig */
  2. /* eslint-disable no-unused-vars */
  3. import React from 'react';
  4. import ReactDOM from 'react-dom';
  5. import { Provider } from 'react-redux';
  6. import { I18nextProvider } from 'react-i18next';
  7. import { i18next } from '../../../react/features/base/i18n';
  8. import {
  9. JitsiParticipantConnectionStatus
  10. } from '../../../react/features/base/lib-jitsi-meet';
  11. import { PresenceLabel } from '../../../react/features/presence-status';
  12. import {
  13. REMOTE_CONTROL_MENU_STATES,
  14. RemoteVideoMenuTriggerButton
  15. } from '../../../react/features/remote-video-menu';
  16. /* eslint-enable no-unused-vars */
  17. const logger = require('jitsi-meet-logger').getLogger(__filename);
  18. import SmallVideo from './SmallVideo';
  19. import UIUtils from '../util/UIUtil';
  20. /**
  21. * Creates new instance of the <tt>RemoteVideo</tt>.
  22. * @param user {JitsiParticipant} the user for whom remote video instance will
  23. * be created.
  24. * @param {VideoLayout} VideoLayout the video layout instance.
  25. * @param {EventEmitter} emitter the event emitter which will be used by
  26. * the new instance to emit events.
  27. * @constructor
  28. */
  29. function RemoteVideo(user, VideoLayout, emitter) {
  30. this.user = user;
  31. this.id = user.getId();
  32. this.emitter = emitter;
  33. this.videoSpanId = `participant_${this.id}`;
  34. SmallVideo.call(this, VideoLayout);
  35. this._audioStreamElement = null;
  36. this.hasRemoteVideoMenu = false;
  37. this._supportsRemoteControl = false;
  38. this.statsPopoverLocation = interfaceConfig.VERTICAL_FILMSTRIP
  39. ? 'left bottom' : 'top center';
  40. this.addRemoteVideoContainer();
  41. this.updateIndicators();
  42. this.setDisplayName();
  43. this.bindHoverHandler();
  44. this.flipX = false;
  45. this.isLocal = false;
  46. this.popupMenuIsHovered = false;
  47. this._isRemoteControlSessionActive = false;
  48. /**
  49. * The flag is set to <tt>true</tt> after the 'onplay' event has been
  50. * triggered on the current video element. It goes back to <tt>false</tt>
  51. * when the stream is removed. It is used to determine whether the video
  52. * playback has ever started.
  53. * @type {boolean}
  54. */
  55. this.wasVideoPlayed = false;
  56. /**
  57. * The flag is set to <tt>true</tt> if remote participant's video gets muted
  58. * during his media connection disruption. This is to prevent black video
  59. * being render on the thumbnail, because even though once the video has
  60. * been played the image usually remains on the video element it seems that
  61. * after longer period of the video element being hidden this image can be
  62. * lost.
  63. * @type {boolean}
  64. */
  65. this.mutedWhileDisconnected = false;
  66. // Bind event handlers so they are only bound once for every instance.
  67. // TODO The event handlers should be turned into actions so changes can be
  68. // handled through reducers and middleware.
  69. this._requestRemoteControlPermissions
  70. = this._requestRemoteControlPermissions.bind(this);
  71. this._setAudioVolume = this._setAudioVolume.bind(this);
  72. this._stopRemoteControl = this._stopRemoteControl.bind(this);
  73. }
  74. RemoteVideo.prototype = Object.create(SmallVideo.prototype);
  75. RemoteVideo.prototype.constructor = RemoteVideo;
  76. RemoteVideo.prototype.addRemoteVideoContainer = function() {
  77. this.container = RemoteVideo.createContainer(this.videoSpanId);
  78. this.$container = $(this.container);
  79. this.initBrowserSpecificProperties();
  80. this.addRemoteVideoMenu();
  81. this.VideoLayout.resizeThumbnails(false, true);
  82. this.addAudioLevelIndicator();
  83. this.addPresenceLabel();
  84. return this.container;
  85. };
  86. /**
  87. * Checks whether current video is considered hovered. Currently it is hovered
  88. * if the mouse is over the video, or if the connection indicator or the popup
  89. * menu is shown(hovered).
  90. * @private
  91. * NOTE: extends SmallVideo's method
  92. */
  93. RemoteVideo.prototype._isHovered = function() {
  94. const isHovered = SmallVideo.prototype._isHovered.call(this)
  95. || this.popupMenuIsHovered;
  96. return isHovered;
  97. };
  98. /**
  99. * Generates the popup menu content.
  100. *
  101. * @returns {Element|*} the constructed element, containing popup menu items
  102. * @private
  103. */
  104. RemoteVideo.prototype._generatePopupContent = function() {
  105. if (interfaceConfig.filmStripOnly) {
  106. return;
  107. }
  108. const remoteVideoMenuContainer
  109. = this.container.querySelector('.remotevideomenu');
  110. if (!remoteVideoMenuContainer) {
  111. return;
  112. }
  113. const { controller } = APP.remoteControl;
  114. let remoteControlState = null;
  115. let onRemoteControlToggle;
  116. if (this._supportsRemoteControl
  117. && ((!APP.remoteControl.active && !this._isRemoteControlSessionActive)
  118. || APP.remoteControl.controller.activeParticipant === this.id)) {
  119. if (controller.getRequestedParticipant() === this.id) {
  120. remoteControlState = REMOTE_CONTROL_MENU_STATES.REQUESTING;
  121. } else if (controller.isStarted()) {
  122. onRemoteControlToggle = this._stopRemoteControl;
  123. remoteControlState = REMOTE_CONTROL_MENU_STATES.STARTED;
  124. } else {
  125. onRemoteControlToggle = this._requestRemoteControlPermissions;
  126. remoteControlState = REMOTE_CONTROL_MENU_STATES.NOT_STARTED;
  127. }
  128. }
  129. let initialVolumeValue, onVolumeChange;
  130. // Feature check for volume setting as temasys objects cannot adjust volume.
  131. if (this._canSetAudioVolume()) {
  132. initialVolumeValue = this._getAudioElement().volume;
  133. onVolumeChange = this._setAudioVolume;
  134. }
  135. const { isModerator } = APP.conference;
  136. const participantID = this.id;
  137. ReactDOM.render(
  138. <Provider store = { APP.store }>
  139. <I18nextProvider i18n = { i18next }>
  140. <RemoteVideoMenuTriggerButton
  141. initialVolumeValue = { initialVolumeValue }
  142. isAudioMuted = { this.isAudioMuted }
  143. isModerator = { isModerator }
  144. onMenuDisplay = {this._onRemoteVideoMenuDisplay.bind(this)}
  145. onRemoteControlToggle = { onRemoteControlToggle }
  146. onVolumeChange = { onVolumeChange }
  147. participantID = { participantID }
  148. remoteControlState = { remoteControlState } />
  149. </I18nextProvider>
  150. </Provider>,
  151. remoteVideoMenuContainer);
  152. };
  153. RemoteVideo.prototype._onRemoteVideoMenuDisplay = function() {
  154. this.updateRemoteVideoMenu();
  155. };
  156. /**
  157. * Sets the remote control active status for the remote video.
  158. *
  159. * @param {boolean} isActive - The new remote control active status.
  160. * @returns {void}
  161. */
  162. RemoteVideo.prototype.setRemoteControlActiveStatus = function(isActive) {
  163. this._isRemoteControlSessionActive = isActive;
  164. this.updateRemoteVideoMenu();
  165. };
  166. /**
  167. * Sets the remote control supported value and initializes or updates the menu
  168. * depending on the remote control is supported or not.
  169. * @param {boolean} isSupported
  170. */
  171. RemoteVideo.prototype.setRemoteControlSupport = function(isSupported = false) {
  172. if (this._supportsRemoteControl === isSupported) {
  173. return;
  174. }
  175. this._supportsRemoteControl = isSupported;
  176. this.updateRemoteVideoMenu();
  177. };
  178. /**
  179. * Requests permissions for remote control session.
  180. */
  181. RemoteVideo.prototype._requestRemoteControlPermissions = function() {
  182. APP.remoteControl.controller.requestPermissions(
  183. this.id, this.VideoLayout.getLargeVideoWrapper()).then(result => {
  184. if (result === null) {
  185. return;
  186. }
  187. this.updateRemoteVideoMenu();
  188. APP.UI.messageHandler.notify(
  189. 'dialog.remoteControlTitle',
  190. result === false ? 'dialog.remoteControlDeniedMessage'
  191. : 'dialog.remoteControlAllowedMessage',
  192. { user: this.user.getDisplayName()
  193. || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME }
  194. );
  195. if (result === true) {
  196. // the remote control permissions has been granted
  197. // pin the controlled participant
  198. const pinnedId = this.VideoLayout.getPinnedId();
  199. if (pinnedId !== this.id) {
  200. this.VideoLayout.handleVideoThumbClicked(this.id);
  201. }
  202. }
  203. }, error => {
  204. logger.error(error);
  205. this.updateRemoteVideoMenu();
  206. APP.UI.messageHandler.notify(
  207. 'dialog.remoteControlTitle',
  208. 'dialog.remoteControlErrorMessage',
  209. { user: this.user.getDisplayName()
  210. || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME }
  211. );
  212. });
  213. this.updateRemoteVideoMenu();
  214. };
  215. /**
  216. * Stops remote control session.
  217. */
  218. RemoteVideo.prototype._stopRemoteControl = function() {
  219. // send message about stopping
  220. APP.remoteControl.controller.stop();
  221. this.updateRemoteVideoMenu();
  222. };
  223. /**
  224. * Get the remote participant's audio element.
  225. *
  226. * @returns {Element} audio element
  227. */
  228. RemoteVideo.prototype._getAudioElement = function() {
  229. return this._audioStreamElement;
  230. };
  231. /**
  232. * Check if the remote participant's audio can have its volume adjusted.
  233. *
  234. * @returns {boolean} true if the volume can be adjusted.
  235. */
  236. RemoteVideo.prototype._canSetAudioVolume = function() {
  237. const audioElement = this._getAudioElement();
  238. return audioElement && audioElement.volume !== undefined;
  239. };
  240. /**
  241. * Change the remote participant's volume level.
  242. *
  243. * @param {int} newVal - The value to set the slider to.
  244. */
  245. RemoteVideo.prototype._setAudioVolume = function(newVal) {
  246. if (this._canSetAudioVolume()) {
  247. this._getAudioElement().volume = newVal;
  248. }
  249. };
  250. /**
  251. * Updates the remote video menu.
  252. *
  253. * @param isMuted the new muted state to update to
  254. */
  255. RemoteVideo.prototype.updateRemoteVideoMenu = function(
  256. isMuted = this.isAudioMuted) {
  257. this.isAudioMuted = isMuted;
  258. this._generatePopupContent();
  259. };
  260. /**
  261. * @inheritDoc
  262. * @override
  263. */
  264. RemoteVideo.prototype.setVideoMutedView = function(isMuted) {
  265. SmallVideo.prototype.setVideoMutedView.call(this, isMuted);
  266. // Update 'mutedWhileDisconnected' flag
  267. this._figureOutMutedWhileDisconnected();
  268. };
  269. /**
  270. * Figures out the value of {@link #mutedWhileDisconnected} flag by taking into
  271. * account remote participant's network connectivity and video muted status.
  272. *
  273. * @private
  274. */
  275. RemoteVideo.prototype._figureOutMutedWhileDisconnected = function() {
  276. const isActive = this.isConnectionActive();
  277. if (!isActive && this.isVideoMuted) {
  278. this.mutedWhileDisconnected = true;
  279. } else if (isActive && !this.isVideoMuted) {
  280. this.mutedWhileDisconnected = false;
  281. }
  282. };
  283. /**
  284. * Adds the remote video menu element for the given <tt>id</tt> in the
  285. * given <tt>parentElement</tt>.
  286. *
  287. */
  288. RemoteVideo.prototype.addRemoteVideoMenu = function() {
  289. if (interfaceConfig.filmStripOnly) {
  290. return;
  291. }
  292. this._generatePopupContent();
  293. this.hasRemoteVideoMenu = true;
  294. };
  295. /**
  296. * Removes the remote stream element corresponding to the given stream and
  297. * parent container.
  298. *
  299. * @param stream the MediaStream
  300. * @param isVideo <tt>true</tt> if given <tt>stream</tt> is a video one.
  301. */
  302. RemoteVideo.prototype.removeRemoteStreamElement = function(stream) {
  303. if (!this.container) {
  304. return false;
  305. }
  306. const isVideo = stream.isVideoTrack();
  307. const elementID = SmallVideo.getStreamElementID(stream);
  308. const select = $(`#${elementID}`);
  309. select.remove();
  310. if (isVideo) {
  311. this.wasVideoPlayed = false;
  312. }
  313. logger.info(`${isVideo ? 'Video' : 'Audio'
  314. } removed ${this.id}`, select);
  315. // when removing only the video element and we are on stage
  316. // update the stage
  317. if (isVideo && this.isCurrentlyOnLargeVideo()) {
  318. this.VideoLayout.updateLargeVideo(this.id);
  319. } else {
  320. // Missing video stream will affect display mode
  321. this.updateView();
  322. }
  323. };
  324. /**
  325. * Checks whether the remote user associated with this <tt>RemoteVideo</tt>
  326. * has connectivity issues.
  327. *
  328. * @return {boolean} <tt>true</tt> if the user's connection is fine or
  329. * <tt>false</tt> otherwise.
  330. */
  331. RemoteVideo.prototype.isConnectionActive = function() {
  332. return this.user.getConnectionStatus()
  333. === JitsiParticipantConnectionStatus.ACTIVE;
  334. };
  335. /**
  336. * The remote video is considered "playable" once the stream has started
  337. * according to the {@link #hasVideoStarted} result.
  338. * It will be allowed to display video also in
  339. * {@link JitsiParticipantConnectionStatus.INTERRUPTED} if the video was ever
  340. * played and was not muted while not in ACTIVE state. This basically means
  341. * that there is stalled video image cached that could be displayed. It's used
  342. * to show "grey video image" in user's thumbnail when there are connectivity
  343. * issues.
  344. *
  345. * @inheritdoc
  346. * @override
  347. */
  348. RemoteVideo.prototype.isVideoPlayable = function() {
  349. const connectionState
  350. = APP.conference.getParticipantConnectionStatus(this.id);
  351. return SmallVideo.prototype.isVideoPlayable.call(this)
  352. && this.hasVideoStarted()
  353. && (connectionState === JitsiParticipantConnectionStatus.ACTIVE
  354. || (connectionState === JitsiParticipantConnectionStatus.INTERRUPTED
  355. && !this.mutedWhileDisconnected));
  356. };
  357. /**
  358. * @inheritDoc
  359. */
  360. RemoteVideo.prototype.updateView = function() {
  361. this.$container.toggleClass('audio-only', APP.conference.isAudioOnly());
  362. this.updateConnectionStatusIndicator();
  363. // This must be called after 'updateConnectionStatusIndicator' because it
  364. // affects the display mode by modifying 'mutedWhileDisconnected' flag
  365. SmallVideo.prototype.updateView.call(this);
  366. };
  367. /**
  368. * Updates the UI to reflect user's connectivity status.
  369. */
  370. RemoteVideo.prototype.updateConnectionStatusIndicator = function() {
  371. const connectionStatus = this.user.getConnectionStatus();
  372. logger.debug(`${this.id} thumbnail connection status: ${connectionStatus}`);
  373. // FIXME rename 'mutedWhileDisconnected' to 'mutedWhileNotRendering'
  374. // Update 'mutedWhileDisconnected' flag
  375. this._figureOutMutedWhileDisconnected();
  376. this.updateConnectionStatus(connectionStatus);
  377. const isInterrupted
  378. = connectionStatus === JitsiParticipantConnectionStatus.INTERRUPTED;
  379. // Toggle thumbnail video problem filter
  380. this.selectVideoElement().toggleClass(
  381. 'videoThumbnailProblemFilter', isInterrupted);
  382. this.$avatar().toggleClass(
  383. 'videoThumbnailProblemFilter', isInterrupted);
  384. };
  385. /**
  386. * Removes RemoteVideo from the page.
  387. */
  388. RemoteVideo.prototype.remove = function() {
  389. logger.log('Remove thumbnail', this.id);
  390. this.removeAudioLevelIndicator();
  391. const toolbarContainer
  392. = this.container.querySelector('.videocontainer__toolbar');
  393. if (toolbarContainer) {
  394. ReactDOM.unmountComponentAtNode(toolbarContainer);
  395. }
  396. this.removeConnectionIndicator();
  397. this.removeDisplayName();
  398. this.removeAvatar();
  399. this.removePresenceLabel();
  400. this._unmountIndicators();
  401. this.removeRemoteVideoMenu();
  402. // Make sure that the large video is updated if are removing its
  403. // corresponding small video.
  404. this.VideoLayout.updateAfterThumbRemoved(this.id);
  405. // Remove whole container
  406. if (this.container.parentNode) {
  407. this.container.parentNode.removeChild(this.container);
  408. }
  409. };
  410. RemoteVideo.prototype.waitForPlayback = function(streamElement, stream) {
  411. const webRtcStream = stream.getOriginalStream();
  412. const isVideo = stream.isVideoTrack();
  413. if (!isVideo || webRtcStream.id === 'mixedmslabel') {
  414. return;
  415. }
  416. const self = this;
  417. // Triggers when video playback starts
  418. const onPlayingHandler = function() {
  419. self.wasVideoPlayed = true;
  420. self.VideoLayout.remoteVideoActive(streamElement, self.id);
  421. streamElement.onplaying = null;
  422. // Refresh to show the video
  423. self.updateView();
  424. };
  425. streamElement.onplaying = onPlayingHandler;
  426. };
  427. /**
  428. * Checks whether the video stream has started for this RemoteVideo instance.
  429. *
  430. * @returns {boolean} true if this RemoteVideo has a video stream for which
  431. * the playback has been started.
  432. */
  433. RemoteVideo.prototype.hasVideoStarted = function() {
  434. return this.wasVideoPlayed;
  435. };
  436. RemoteVideo.prototype.addRemoteStreamElement = function(stream) {
  437. if (!this.container) {
  438. return;
  439. }
  440. const isVideo = stream.isVideoTrack();
  441. isVideo ? this.videoStream = stream : this.audioStream = stream;
  442. if (isVideo) {
  443. this.setVideoType(stream.videoType);
  444. }
  445. // Add click handler.
  446. const onClickHandler = event => {
  447. const $source = $(event.target || event.srcElement);
  448. const { classList } = event.target;
  449. const clickedOnPopover
  450. = $source.parents('.connection-info').length > 0;
  451. const clickedOnPopoverTrigger
  452. = $source.parents('.popover-trigger').length > 0
  453. || classList.contains('popover-trigger');
  454. const clickedOnRemoteMenu
  455. = $source.parents('.remotevideomenu').length > 0;
  456. const ignoreClick = clickedOnPopoverTrigger
  457. || clickedOnPopover
  458. || clickedOnRemoteMenu;
  459. if (!ignoreClick) {
  460. this.VideoLayout.handleVideoThumbClicked(this.id);
  461. }
  462. // On IE we need to populate this handler on video <object>
  463. // and it does not give event instance as an argument,
  464. // so we check here for methods.
  465. if (event.stopPropagation && event.preventDefault && !ignoreClick) {
  466. event.stopPropagation();
  467. event.preventDefault();
  468. }
  469. return false;
  470. };
  471. this.container.onclick = onClickHandler;
  472. if (!stream.getOriginalStream()) {
  473. return;
  474. }
  475. let streamElement = SmallVideo.createStreamElement(stream);
  476. // Put new stream element always in front
  477. UIUtils.prependChild(this.container, streamElement);
  478. // If we hide element when Temasys plugin is used then
  479. // we'll never receive 'onplay' event and other logic won't work as expected
  480. // NOTE: hiding will not have effect when Temasys plugin is in use, as
  481. // calling attach will show it back
  482. $(streamElement).hide();
  483. // If the container is currently visible
  484. // we attach the stream to the element.
  485. if (!isVideo || (this.container.offsetParent !== null && isVideo)) {
  486. this.waitForPlayback(streamElement, stream);
  487. streamElement = stream.attach(streamElement);
  488. }
  489. $(streamElement).click(onClickHandler);
  490. if (!isVideo) {
  491. this._audioStreamElement = streamElement;
  492. // If the remote video menu was created before the audio stream was
  493. // attached we need to update the menu in order to show the volume
  494. // slider.
  495. this.updateRemoteVideoMenu();
  496. }
  497. };
  498. /**
  499. * Sets the display name for the given video span id.
  500. *
  501. * @param displayName the display name to set
  502. */
  503. RemoteVideo.prototype.setDisplayName = function(displayName) {
  504. if (!this.container) {
  505. logger.warn(`Unable to set displayName - ${this.videoSpanId
  506. } does not exist`);
  507. return;
  508. }
  509. this.updateDisplayName({
  510. displayName: displayName || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME,
  511. elementID: `${this.videoSpanId}_name`,
  512. participantID: this.id
  513. });
  514. };
  515. /**
  516. * Removes remote video menu element from video element identified by
  517. * given <tt>videoElementId</tt>.
  518. *
  519. * @param videoElementId the id of local or remote video element.
  520. */
  521. RemoteVideo.prototype.removeRemoteVideoMenu = function() {
  522. const menuSpan = this.$container.find('.remotevideomenu');
  523. if (menuSpan.length) {
  524. ReactDOM.unmountComponentAtNode(menuSpan.get(0));
  525. menuSpan.remove();
  526. this.hasRemoteVideoMenu = false;
  527. }
  528. };
  529. /**
  530. * Mounts the {@code PresenceLabel} for displaying the participant's current
  531. * presence status.
  532. *
  533. * @return {void}
  534. */
  535. RemoteVideo.prototype.addPresenceLabel = function() {
  536. const presenceLabelContainer
  537. = this.container.querySelector('.presence-label-container');
  538. if (presenceLabelContainer) {
  539. ReactDOM.render(
  540. <Provider store = { APP.store }>
  541. <PresenceLabel participantID = { this.id } />
  542. </Provider>,
  543. presenceLabelContainer);
  544. }
  545. };
  546. /**
  547. * Unmounts the {@code PresenceLabel} component.
  548. *
  549. * @return {void}
  550. */
  551. RemoteVideo.prototype.removePresenceLabel = function() {
  552. const presenceLabelContainer
  553. = this.container.querySelector('.presence-label-container');
  554. if (presenceLabelContainer) {
  555. ReactDOM.unmountComponentAtNode(presenceLabelContainer);
  556. }
  557. };
  558. RemoteVideo.createContainer = function(spanId) {
  559. const container = document.createElement('span');
  560. container.id = spanId;
  561. container.className = 'videocontainer';
  562. container.innerHTML = `
  563. <div class = 'videocontainer__background'></div>
  564. <div class = 'videocontainer__toptoolbar'></div>
  565. <div class = 'videocontainer__toolbar'></div>
  566. <div class = 'videocontainer__hoverOverlay'></div>
  567. <div class = 'displayNameContainer'></div>
  568. <div class = 'avatar-container'></div>
  569. <div class ='presence-label-container'></div>
  570. <span class = 'remotevideomenu'></span>`;
  571. const remotes = document.getElementById('filmstripRemoteVideosContainer');
  572. return remotes.appendChild(container);
  573. };
  574. export default RemoteVideo;