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

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