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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  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. let 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. onRemoteControlToggle = () => {};
  121. remoteControlState = REMOTE_CONTROL_MENU_STATES.REQUESTING;
  122. } else if (!controller.isStarted()) {
  123. onRemoteControlToggle = this._requestRemoteControlPermissions;
  124. remoteControlState = REMOTE_CONTROL_MENU_STATES.NOT_STARTED;
  125. } else {
  126. onRemoteControlToggle = this._stopRemoteControl;
  127. remoteControlState = REMOTE_CONTROL_MENU_STATES.STARTED;
  128. }
  129. }
  130. let initialVolumeValue, onVolumeChange;
  131. // Feature check for volume setting as temasys objects cannot adjust volume.
  132. if (this._canSetAudioVolume()) {
  133. initialVolumeValue = this._getAudioElement().volume;
  134. onVolumeChange = this._setAudioVolume;
  135. }
  136. const { isModerator } = APP.conference;
  137. const participantID = this.id;
  138. /* jshint ignore:start */
  139. ReactDOM.render(
  140. <Provider store = { APP.store }>
  141. <I18nextProvider i18n = { i18next }>
  142. <RemoteVideoMenuTriggerButton
  143. initialVolumeValue = { initialVolumeValue }
  144. isAudioMuted = { this.isAudioMuted }
  145. isModerator = { isModerator }
  146. onMenuDisplay = { this._onRemoteVideoMenuDisplay.bind(this) }
  147. onRemoteControlToggle = { onRemoteControlToggle }
  148. onVolumeChange = { onVolumeChange }
  149. participantID = { participantID }
  150. remoteControlState = { remoteControlState } />
  151. </I18nextProvider>
  152. </Provider>,
  153. remoteVideoMenuContainer);
  154. /* jshint ignore:end */
  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) {//the remote control permissions has been granted
  199. // pin the controlled participant
  200. let pinnedId = this.VideoLayout.getPinnedId();
  201. if(pinnedId !== this.id) {
  202. this.VideoLayout.handleVideoThumbClicked(this.id);
  203. }
  204. }
  205. }, error => {
  206. logger.error(error);
  207. this.updateRemoteVideoMenu();
  208. APP.UI.messageHandler.notify(
  209. "dialog.remoteControlTitle",
  210. "dialog.remoteControlErrorMessage",
  211. {user: this.user.getDisplayName()
  212. || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME}
  213. );
  214. });
  215. this.updateRemoteVideoMenu();
  216. };
  217. /**
  218. * Stops remote control session.
  219. */
  220. RemoteVideo.prototype._stopRemoteControl = function () {
  221. // send message about stopping
  222. APP.remoteControl.controller.stop();
  223. this.updateRemoteVideoMenu();
  224. };
  225. /**
  226. * Get the remote participant's audio element.
  227. *
  228. * @returns {Element} audio element
  229. */
  230. RemoteVideo.prototype._getAudioElement = function () {
  231. return this._audioStreamElement;
  232. };
  233. /**
  234. * Check if the remote participant's audio can have its volume adjusted.
  235. *
  236. * @returns {boolean} true if the volume can be adjusted.
  237. */
  238. RemoteVideo.prototype._canSetAudioVolume = function () {
  239. const audioElement = this._getAudioElement();
  240. return audioElement && audioElement.volume !== undefined;
  241. };
  242. /**
  243. * Change the remote participant's volume level.
  244. *
  245. * @param {int} newVal - The value to set the slider to.
  246. */
  247. RemoteVideo.prototype._setAudioVolume = function (newVal) {
  248. if (this._canSetAudioVolume()) {
  249. this._getAudioElement().volume = newVal;
  250. }
  251. };
  252. /**
  253. * Updates the remote video menu.
  254. *
  255. * @param isMuted the new muted state to update to
  256. */
  257. RemoteVideo.prototype.updateRemoteVideoMenu = function (
  258. isMuted = this.isAudioMuted) {
  259. this.isAudioMuted = isMuted;
  260. this._generatePopupContent();
  261. };
  262. /**
  263. * @inheritDoc
  264. * @override
  265. */
  266. RemoteVideo.prototype.setVideoMutedView = function(isMuted) {
  267. SmallVideo.prototype.setVideoMutedView.call(this, isMuted);
  268. // Update 'mutedWhileDisconnected' flag
  269. this._figureOutMutedWhileDisconnected();
  270. };
  271. /**
  272. * Figures out the value of {@link #mutedWhileDisconnected} flag by taking into
  273. * account remote participant's network connectivity and video muted status.
  274. *
  275. * @private
  276. */
  277. RemoteVideo.prototype._figureOutMutedWhileDisconnected = function() {
  278. const isActive = this.isConnectionActive();
  279. if (!isActive && this.isVideoMuted) {
  280. this.mutedWhileDisconnected = true;
  281. } else if (isActive && !this.isVideoMuted) {
  282. this.mutedWhileDisconnected = false;
  283. }
  284. };
  285. /**
  286. * Adds the remote video menu element for the given <tt>id</tt> in the
  287. * given <tt>parentElement</tt>.
  288. *
  289. */
  290. RemoteVideo.prototype.addRemoteVideoMenu = function () {
  291. if (interfaceConfig.filmStripOnly) {
  292. return;
  293. }
  294. this._generatePopupContent();
  295. this.hasRemoteVideoMenu = true;
  296. };
  297. /**
  298. * Removes the remote stream element corresponding to the given stream and
  299. * parent container.
  300. *
  301. * @param stream the MediaStream
  302. * @param isVideo <tt>true</tt> if given <tt>stream</tt> is a video one.
  303. */
  304. RemoteVideo.prototype.removeRemoteStreamElement = function (stream) {
  305. if (!this.container)
  306. return false;
  307. var isVideo = stream.isVideoTrack();
  308. var elementID = SmallVideo.getStreamElementID(stream);
  309. var select = $('#' + elementID);
  310. select.remove();
  311. if (isVideo) {
  312. this.wasVideoPlayed = false;
  313. }
  314. logger.info((isVideo ? "Video" : "Audio") +
  315. " removed " + this.id, select);
  316. // when removing only the video element and we are on stage
  317. // update the stage
  318. if (isVideo && this.isCurrentlyOnLargeVideo()) {
  319. this.VideoLayout.updateLargeVideo(this.id);
  320. } else {
  321. // Missing video stream will affect display mode
  322. this.updateView();
  323. }
  324. };
  325. /**
  326. * Checks whether the remote user associated with this <tt>RemoteVideo</tt>
  327. * has connectivity issues.
  328. *
  329. * @return {boolean} <tt>true</tt> if the user's connection is fine or
  330. * <tt>false</tt> otherwise.
  331. */
  332. RemoteVideo.prototype.isConnectionActive = function() {
  333. return this.user.getConnectionStatus()
  334. === JitsiParticipantConnectionStatus.ACTIVE;
  335. };
  336. /**
  337. * The remote video is considered "playable" once the stream has started
  338. * according to the {@link #hasVideoStarted} result.
  339. * It will be allowed to display video also in
  340. * {@link JitsiParticipantConnectionStatus.INTERRUPTED} if the video was ever played
  341. * and was not muted while not in ACTIVE state. This basically means that there
  342. * is stalled video image cached that could be displayed. It's used to show
  343. * "grey video image" in user's thumbnail when there are connectivity 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. var webRtcStream = stream.getOriginalStream();
  412. var isVideo = stream.isVideoTrack();
  413. if (!isVideo || webRtcStream.id === 'mixedmslabel') {
  414. return;
  415. }
  416. var self = this;
  417. // Triggers when video playback starts
  418. var 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. let isVideo = stream.isVideoTrack();
  441. isVideo ? this.videoStream = stream : this.audioStream = stream;
  442. if (isVideo)
  443. this.setVideoType(stream.videoType);
  444. // Add click handler.
  445. let onClickHandler = (event) => {
  446. const $source = $(event.target || event.srcElement);
  447. const { classList } = event.target;
  448. const clickedOnPopover
  449. = $source.parents('.connection-info').length > 0;
  450. const clickedOnPopoverTrigger
  451. = $source.parents('.popover-trigger').length > 0
  452. || classList.contains('popover-trigger');
  453. const clickedOnRemoteMenu
  454. = $source.parents('.remotevideomenu').length > 0;
  455. const ignoreClick = clickedOnPopoverTrigger
  456. || clickedOnPopover
  457. || clickedOnRemoteMenu;
  458. if (!ignoreClick) {
  459. this.VideoLayout.handleVideoThumbClicked(this.id);
  460. }
  461. // On IE we need to populate this handler on video <object>
  462. // and it does not give event instance as an argument,
  463. // so we check here for methods.
  464. if (event.stopPropagation && event.preventDefault && !ignoreClick) {
  465. event.stopPropagation();
  466. event.preventDefault();
  467. }
  468. return false;
  469. };
  470. this.container.onclick = onClickHandler;
  471. if(!stream.getOriginalStream())
  472. return;
  473. let streamElement = SmallVideo.createStreamElement(stream);
  474. // Put new stream element always in front
  475. UIUtils.prependChild(this.container, streamElement);
  476. // If we hide element when Temasys plugin is used then
  477. // we'll never receive 'onplay' event and other logic won't work as expected
  478. // NOTE: hiding will not have effect when Temasys plugin is in use, as
  479. // calling attach will show it back
  480. $(streamElement).hide();
  481. // If the container is currently visible
  482. // we attach the stream to the element.
  483. if (!isVideo || (this.container.offsetParent !== null && isVideo)) {
  484. this.waitForPlayback(streamElement, stream);
  485. streamElement = stream.attach(streamElement);
  486. }
  487. $(streamElement).click(onClickHandler);
  488. if (!isVideo) {
  489. this._audioStreamElement = streamElement;
  490. // If the remote video menu was created before the audio stream was
  491. // attached we need to update the menu in order to show the volume
  492. // slider.
  493. this.updateRemoteVideoMenu();
  494. }
  495. };
  496. /**
  497. * Sets the display name for the given video span id.
  498. *
  499. * @param displayName the display name to set
  500. */
  501. RemoteVideo.prototype.setDisplayName = function(displayName) {
  502. if (!this.container) {
  503. logger.warn( "Unable to set displayName - " + this.videoSpanId +
  504. " does not exist");
  505. return;
  506. }
  507. this.updateDisplayName({
  508. displayName: displayName || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME,
  509. elementID: `${this.videoSpanId}_name`,
  510. participantID: this.id
  511. });
  512. };
  513. /**
  514. * Removes remote video menu element from video element identified by
  515. * given <tt>videoElementId</tt>.
  516. *
  517. * @param videoElementId the id of local or remote video element.
  518. */
  519. RemoteVideo.prototype.removeRemoteVideoMenu = function() {
  520. var menuSpan = this.$container.find('.remotevideomenu');
  521. if (menuSpan.length) {
  522. ReactDOM.unmountComponentAtNode(menuSpan.get(0));
  523. menuSpan.remove();
  524. this.hasRemoteVideoMenu = false;
  525. }
  526. };
  527. /**
  528. * Mounts the {@code PresenceLabel} for displaying the participant's current
  529. * presence status.
  530. *
  531. * @return {void}
  532. */
  533. RemoteVideo.prototype.addPresenceLabel = function () {
  534. const presenceLabelContainer
  535. = this.container.querySelector('.presence-label-container');
  536. if (presenceLabelContainer) {
  537. /* jshint ignore:start */
  538. ReactDOM.render(
  539. <Provider store = { APP.store }>
  540. <PresenceLabel participantID = { this.id } />
  541. </Provider>,
  542. presenceLabelContainer);
  543. /* jshint ignore:end */
  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. var remotes = document.getElementById('filmstripRemoteVideosContainer');
  572. return remotes.appendChild(container);
  573. };
  574. export default RemoteVideo;