Skip to content

Commit

Permalink
ft-audio-call-added
Browse files Browse the repository at this point in the history
ft-audio-call-added
  • Loading branch information
munezeromicha committed Jul 22, 2024
1 parent 5ee5d11 commit 32ae6df
Show file tree
Hide file tree
Showing 16 changed files with 1,380 additions and 915 deletions.
15 changes: 15 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const token: string = process.env.EXPO_PUBLIC_TOKEN;

export const createMeeting = async ({ token }: { token: string }): Promise<string> => {
const res = await fetch(`https://api.videosdk.live/v2/rooms`, {
method: "POST",
headers: {
authorization: `${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});

const { roomId } = await res.json();
return roomId;
}
14 changes: 11 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"expo": {
"name": "matadors-rn-medica",
"slug": "matadors-rn-medica",
"slug": "medica-158",
"scheme": "com.medica",
"version": "1.0.0",
"orientation": "portrait",
Expand Down Expand Up @@ -70,6 +70,14 @@
{
"microphonePermission": "$(PRODUCT_NAME) would like to use your microphone for voice recording."
}
],
"@videosdk.live/expo-config-plugin",
[
"@config-plugins/react-native-webrtc",
{
"cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
"microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone"
}
]
],
"experiments": {
Expand All @@ -80,7 +88,7 @@
"origin": false
},
"eas": {
"projectId": "3a6a34bd-fe90-43f9-9508-8c6cf7700ef6"
"projectId": "e682bd39-ab6e-4861-9be2-39cbe02bb93e"
}
},
"runtimeVersion": {
Expand All @@ -89,6 +97,6 @@
"updates": {
"url": "https://u.expo.dev/3a17d659-91e3-4105-837b-5f88bdee8d37"
},
"owner": "apiimperfect"
"owner": "actrox"
}
}
Loading

0 comments on commit 32ae6df

Please sign in to comment.