From 5a3bf5d5f9fa36a2a85791d36f934c52c5bc3638 Mon Sep 17 00:00:00 2001 From: ChintanRajpara Date: Tue, 7 Jun 2022 20:48:15 +0530 Subject: [PATCH] whiteboard image upload base url added --- src/App.js | 13 ------------- src/components/whiteboard/WhiteboardContainer.js | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/App.js b/src/App.js index af7f9a7..8c361b6 100755 --- a/src/App.js +++ b/src/App.js @@ -323,19 +323,6 @@ const App = () => { paramKeys.region = "sg001"; } - // switch (paramKeys.region?.toLowerCase()) { - // case "sg001": - // case "eu001": - // case "us001": - // case "uk001": - // case "uae001": - // paramKeys.region = paramKeys.region.toLowerCase(); - // break; - // default: - // paramKeys.region = "sg001"; - // break; - // } - if (typeof paramKeys.preferredProtocol !== "string") { paramKeys.preferredProtocol = "UDP_ONLY"; } diff --git a/src/components/whiteboard/WhiteboardContainer.js b/src/components/whiteboard/WhiteboardContainer.js index ddb0d59..1de2955 100644 --- a/src/components/whiteboard/WhiteboardContainer.js +++ b/src/components/whiteboard/WhiteboardContainer.js @@ -571,7 +571,7 @@ function WhiteboardContainer({ try { const res = await fetch( - `https://call-api.videosdk.live/file-upload?roomId=${mMeeting.meetingId}`, + `https://${mMeeting?.meeting?.baseUrl}/file-upload?roomId=${mMeeting.meetingId}`, requestOptions ); @@ -589,6 +589,7 @@ function WhiteboardContainer({ }); }); } + async function addImage(event) { const url = await uploadImageAndGetUrl(event);