From 5a1fdc59b74b2ecd3ff3fa23cba0d5f294d8b6a3 Mon Sep 17 00:00:00 2001 From: harshithpabbati Date: Wed, 2 Feb 2022 17:40:38 +0530 Subject: [PATCH] Update the track provider and participant providers --- custom/shared/components/Tile/Tile.js | 5 +- custom/shared/components/Tile/Video.js | 157 ++++++-- .../shared/contexts/ParticipantsProvider.js | 234 ++++++------ custom/shared/contexts/TracksProvider.js | 340 ++++++++++------- custom/shared/contexts/participantsState.js | 351 +++++++++--------- custom/shared/contexts/tracksState.js | 47 +-- custom/shared/hooks/useNetworkState.js | 106 +++--- custom/shared/lib/sortByKey.js | 3 +- 8 files changed, 699 insertions(+), 544 deletions(-) diff --git a/custom/shared/components/Tile/Tile.js b/custom/shared/components/Tile/Tile.js index b6d28bd..621eb39 100644 --- a/custom/shared/components/Tile/Tile.js +++ b/custom/shared/components/Tile/Tile.js @@ -4,7 +4,7 @@ import { ReactComponent as IconMicMute } from '@custom/shared/icons/mic-off-sm.s import classNames from 'classnames'; import PropTypes from 'prop-types'; import { DEFAULT_ASPECT_RATIO } from '../../constants'; -import Video from './Video'; +import { Video } from './Video'; import { ReactComponent as Avatar } from './avatar.svg'; const SM_TILE_MAX_WIDTH = 300; @@ -99,8 +99,9 @@ export const Tile = memo( {videoTrack ? (