Skip to content

Commit

Permalink
Remove conference context
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Dec 17, 2024
1 parent f9573be commit bee5db2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function MoreOptionsButton(props) {
/>
<Tooltip title={t("More options")} placement="top">
<CustomizedBtn
className={footer ? "footer-icon-button" : ""}
className={props?.footer ? "footer-icon-button" : ""}
id="more-button"
data-testid="more-button-test"
variant="contained"
Expand Down
136 changes: 0 additions & 136 deletions react/src/pages/AntMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import PublisherRequestListDrawer from "../Components/PublisherRequestListDrawer
import {WebinarRoles} from "../WebinarRoles";
import Stack from "@mui/material/Stack";

export const ConferenceContext = React.createContext(null);

const globals = {
//this settings is to keep consistent with the sdk until backend for the app is setup
Expand Down Expand Up @@ -3028,140 +3027,6 @@ function AntMedia(props) {
justifyContent="center"
alignItems={"center"}
>
<ConferenceContext.Provider
value={{
isScreenShared,
talkers,
audioTracks,
isPublished,
selectedCamera,
selectedMicrophone,
selectedBackgroundMode,
videoTrackAssignments,
setVideoTrackAssignments,
messageDrawerOpen,
participantListDrawerOpen,
messages,
numberOfUnReadMessages,
participantUpdated,
allParticipants,
globals,
isPlayOnly,
setIsPlayOnly,
localVideo,
streamName,
initialized,
devices,
publishStreamId,
isMyMicMuted,
isMyCamTurnedOff,
sendReactions,
setSelectedBackgroundMode,
setIsVideoEffectRunning,
handleMessageDrawerOpen,
handleParticipantListOpen,
setSelectedCamera,
setSelectedMicrophone,
setLeftTheRoom,
joinRoom,
handleStopScreenShare,
handleStartScreenShare,
cameraSelected,
microphoneSelected,
handleBackgroundReplacement,
muteLocalMic,
unmuteLocalMic,
toggleMic,
checkAndTurnOnLocalCamera,
checkAndTurnOffLocalCamera,
setAudioLevelListener,
handleSetMessages,
toggleSetNumberOfUnreadMessages,
pinVideo,
setLocalVideo,
setWaitingOrMeetingRoom,
setStreamName,
handleLeaveFromRoom,
handleSendNotificationEvent,
handleSetDesiredTileCount,
handleSendMessage,
turnOffYourMicNotification,
addFakeParticipant,
removeFakeParticipant,
fakeReconnect,
showEmojis,
setShowEmojis,
isMuteParticipantDialogOpen,
setMuteParticipantDialogOpen,
participantIdMuted,
setParticipantIdMuted,
videoSendResolution,
setVideoSendResolution,
makeid,
startRecord,
stopRecord,
isRecordPluginInstalled,
isRecordPluginActive,
isEnterDirectly,
publisherRequestListDrawerOpen,
setPublisherRequestListDrawerOpen,
isAdmin,
setIsAdmin,
presenterButtonDisabled,
setPresenterButtonDisabled,
effectsDrawerOpen,
handleEffectsOpen,
setVirtualBackgroundImage,
localVideoCreate,
microphoneButtonDisabled,
setMicrophoneButtonDisabled,
cameraButtonDisabled,
setCameraButtonDisabled,
updateMaxVideoTrackCount,
checkAndUpdateVideoAudioSources,
setDevices,
getSelectedDevices,
setIsJoining,
isJoining,
setParticipantUpdated,
makeParticipantPresenter,
makeParticipantUndoPresenter,
isBecomePublisherConfirmationDialogOpen,
setBecomePublisherConfirmationDialogOpen,
requestSpeakerList,
turnOnYourMicNotification,
turnOffYourCamNotification,
handlePublisherRequestListOpen,
setRequestSpeakerList,
presenterButtonStreamIdInProcess,
roomName,
role,
speedTestObject,
setSpeedTestObject,
speedTestStreamId,
startSpeedTest,
stopSpeedTest,
statsList,
getTrackStats,
isBroadcasting,
playStats,
checkAndSetIsPinned,
updateAllParticipantsPagination,
pagedParticipants,
participantCount,
setParticipantCount,
checkAndUpdateVideoAudioSourcesForPublishSpeedTest,
fetchImageAsBlob,
setAndEnableVirtualBackgroundImage,
setAndFillPlayStatsList,
setAndFillPublishStatsList,
setSpeedTestObjectFailed,
setSpeedTestObjectProgress,
calculateThePlaySpeedTestResult,
processUpdatedStatsForPlaySpeedTest,
speedTestCounter
}}
>
{props.children}
<UnauthrorizedDialog
onClose={handleUnauthorizedDialogExitClicked}
Expand Down Expand Up @@ -3375,7 +3240,6 @@ function AntMedia(props) {
<PublisherRequestListDrawer/>
</>
)}
</ConferenceContext.Provider>
</Grid>
</Grid>
);
Expand Down

0 comments on commit bee5db2

Please sign in to comment.