Skip to content

Commit bf0c16e

Browse files
authored
Merge pull request #222 from atlp-rwanda/ft-audio-call
Implement Audio Call Feature for Patients
2 parents 5ee5d11 + 32ae6df commit bf0c16e

File tree

16 files changed

+1380
-915
lines changed

16 files changed

+1380
-915
lines changed

api.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export const token: string = process.env.EXPO_PUBLIC_TOKEN;
2+
3+
export const createMeeting = async ({ token }: { token: string }): Promise<string> => {
4+
const res = await fetch(`https://api.videosdk.live/v2/rooms`, {
5+
method: "POST",
6+
headers: {
7+
authorization: `${token}`,
8+
"Content-Type": "application/json",
9+
},
10+
body: JSON.stringify({}),
11+
});
12+
13+
const { roomId } = await res.json();
14+
return roomId;
15+
}

app.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"expo": {
33
"name": "matadors-rn-medica",
4-
"slug": "matadors-rn-medica",
4+
"slug": "medica-158",
55
"scheme": "com.medica",
66
"version": "1.0.0",
77
"orientation": "portrait",
@@ -70,6 +70,14 @@
7070
{
7171
"microphonePermission": "$(PRODUCT_NAME) would like to use your microphone for voice recording."
7272
}
73+
],
74+
"@videosdk.live/expo-config-plugin",
75+
[
76+
"@config-plugins/react-native-webrtc",
77+
{
78+
"cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
79+
"microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone"
80+
}
7381
]
7482
],
7583
"experiments": {
@@ -80,7 +88,7 @@
8088
"origin": false
8189
},
8290
"eas": {
83-
"projectId": "3a6a34bd-fe90-43f9-9508-8c6cf7700ef6"
91+
"projectId": "e682bd39-ab6e-4861-9be2-39cbe02bb93e"
8492
}
8593
},
8694
"runtimeVersion": {
@@ -89,6 +97,6 @@
8997
"updates": {
9098
"url": "https://u.expo.dev/3a17d659-91e3-4105-837b-5f88bdee8d37"
9199
},
92-
"owner": "apiimperfect"
100+
"owner": "actrox"
93101
}
94102
}

0 commit comments

Comments
 (0)