Skip to content

Commit

Permalink
whiteboard image upload base url added
Browse files Browse the repository at this point in the history
  • Loading branch information
ChintanRajpara committed Jun 7, 2022
1 parent 1b3e981 commit 5a3bf5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
13 changes: 0 additions & 13 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/whiteboard/WhiteboardContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand All @@ -589,6 +589,7 @@ function WhiteboardContainer({
});
});
}

async function addImage(event) {
const url = await uploadImageAndGetUrl(event);

Expand Down

0 comments on commit 5a3bf5d

Please sign in to comment.