You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-call-android.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@ ms.custom: include file
12
12
ms.author: t-siddiquim
13
13
---
14
14
15
-
## Sample App
15
+
## Sample app
16
16
17
17
18
18
To follow along with this quickstart, you can download the Room Call quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-android-quickstarts/tree/main/RoomsCallQuickstart).
19
19
20
20
21
-
## Setting up Project
21
+
## Setting up project
22
22
23
23
24
24
## Create an Android app with an empty activity
@@ -91,7 +91,7 @@ To request permissions required to make a call, you must first declare the permi
91
91
92
92
### Set up the layout for the app
93
93
94
-
You need a text input for the room Id, a button for placing the call, and extra button for hanging up the call.
94
+
You need a text input for the room ID, a button for placing the call, and extra button for hanging up the call.
95
95
96
96
Go to `app/src/main/res/layout/activity_main.xml`, and replace the content of file with the following code:
97
97
@@ -134,7 +134,7 @@ Go to `app/src/main/res/layout/activity_main.xml`, and replace the content of fi
134
134
android:layout_width="match_parent"
135
135
android:layout_height="wrap_content"
136
136
android:ems="10"
137
-
android:hint="Room Id"
137
+
android:hint="Room ID"
138
138
android:inputType="textPersonName"
139
139
android:layout_marginTop="100dp"
140
140
android:layout_marginHorizontal="20dp"
@@ -352,10 +352,10 @@ private val userToken = "<ACS_USER_TOKEN>"
352
352
353
353
Run the project on an emulator or a physical device.
354
354
355
-
You should see a field to enter your Room Id and a button to start the Room Call. Enter your Room Id and verify the Call status has changed along with your Role.
355
+
You should see a field to enter your Room ID and a button to start the Room Call. Enter your Room ID and verify the Call status has changed along with your Role.
356
356
357
357
358
-
## Understanding joining a Room Call
358
+
## Understanding joining a Room call
359
359
360
360
All the code that you have added in your QuickStart app allowed you to successfully start and join a room call. We need to dive deep into how it all works and what more methods/handlers you can access for Rooms.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-call-ios.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,21 @@ ms.author: t-siddiquim
13
13
---
14
14
15
15
16
-
## Join a room call
16
+
## Join a Room call
17
17
18
18
To follow along with this quickstart, you can download the Room Call quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-ios-quickstarts/tree/main/join-room-call).
19
19
20
20
21
21
## Setting up
22
-
### Creating the Xcode Project
22
+
### Creating the Xcode project
23
23
In Xcode, create a new iOS project and select the Single View App template. This tutorial uses the [SwiftUI framework](https://developer.apple.com/xcode/swiftui/), so you should set the Language to Swift and the User Interface to SwiftUI.
24
24
25
25
:::image type="content" source="../../voice-video-calling/media/ios/xcode-new-ios-project.png" alt-text="Screenshot showing the New Project window within Xcode.":::
26
26
27
27
### Installing CocoaPods
28
28
Please use this guide to [install CocoaPods](https://guides.cocoapods.org/using/getting-started.html) on your Mac.
29
29
30
-
### Install the Package and Dependencies with CocoaPods
30
+
### Install the package and dependencies with CocoaPods
31
31
1. To create a Podfile for your application open the terminal and navigate to the project folder and run pod init.
32
32
33
33
2. Add the following code to the Podfile and save:
@@ -46,7 +46,7 @@ end
46
46
4. Open the .xcworkspace with Xcode.
47
47
48
48
49
-
### Request Access to the Microphone and Camera
49
+
### Request access to the Microphone and Camera
50
50
To access the device's microphone and camera, you need to update your app's Information Property List with an `NSMicrophoneUsageDescription` and `NSCameraUsageDescription`. You set the associated value to a string that will be included in the dialog the system uses to request access from the user.
51
51
52
52
Right-click the `Info.plist` entry of the project tree and select Open As > Source Code. Add the following lines the top level `<dict>` section, and then save the file.
@@ -58,15 +58,15 @@ Right-click the `Info.plist` entry of the project tree and select Open As > Sour
58
58
<string>Need camera access for video calling</string>
59
59
```
60
60
61
-
### Set up the App framework
61
+
### Set up the app framework
62
62
Open your project's `ContentView.swift` file and add an import declaration to the top of the file to import the `AzureCommunicationCalling` library and `AVFoundation`. AVFoundation is used to capture audio permission from code.
63
63
64
64
```Swift
65
65
importAzureCommunicationCalling
66
66
importAVFoundation
67
67
```
68
68
69
-
## Object Model
69
+
## Object model
70
70
The following classes and interfaces handle some of the major features of the Azure Communication Services Calling SDK for iOS.
71
71
72
72
| Name | Description |
@@ -214,7 +214,7 @@ do {
214
214
}
215
215
```
216
216
217
-
### Initialize the CallAgent and Access the Device Manager
217
+
### Initialize the CallAgent and access the Device Manager
218
218
To create a CallAgent instance from a CallClient, use the `callClient.createCallAgent` method that asynchronously returns a CallAgent object once it's initialized. DeviceManager lets you enumerate local devices that can be used in a call to transmit audio/video streams. It also allows you to request permission from a user to access microphone/camera.
We need to add the following code to the `onAppear` callback to ask for permissions for audio and video.
244
244
245
245
```Swift
@@ -252,7 +252,7 @@ AVAudioSession.sharedInstance().requestRecordPermission { (granted) in
252
252
}
253
253
```
254
254
255
-
## Joining a Room Call
255
+
## Joining a Room call
256
256
The `joinRoomCall` method is set as the action that will be performed when the Join Room Call button is tapped. In this quickstart, calls are audio only by default but can have video enabled once a Room has been joined.
The `leaveRoomCall` method is set as the action that will be performed when the Leave Room Call button is tapped. It handles leaving a call and cleans up any resources that were created.
@@ -421,7 +421,7 @@ Set a delegate to the CallAgent after the CallAgent being successfully created:
421
421
self.callAgent!.delegate= callHandler
422
422
```
423
423
424
-
## Remote Participant Management
424
+
## Remote participant management
425
425
All remote participants are represented by the `RemoteParticipant` type and are available through the `remoteParticipants` collection on a call instance. We can implement a `Participant` class to manage the updates on remote video streams of remote participants amongst other things.
426
426
427
427
```swift
@@ -556,7 +556,7 @@ class Utilities {
556
556
```
557
557
558
558
559
-
## Remote Participant Video Streams
559
+
## Remote participant video streams
560
560
We can create a `ParticipantView` to handle the rendering of video streams of remote participants. Put the implementation in `ParticipantView.swift`
We can implement a `CallObserver` class to subscribe to a collection of events to be notified when values, like `remoteParticipants`, change during the call.
634
634
635
635
```Swift
@@ -752,7 +752,7 @@ public class CallObserver : NSObject, CallDelegate
752
752
}
753
753
```
754
754
755
-
## Run the Code
755
+
## Run the code
756
756
You can build and run your app on iOS simulator by selecting Product > Run or by using the (⌘-R) keyboard shortcut.
Open your browser navigate to http://localhost:8080/.
397
-
398
-
On the first input field, enter a valid user access token.
399
-
400
-
Click on the "Initialize Call Agent" and enter your Room ID.
401
-
402
-
Click "Join Room Call"
396
+
1. Open your browser navigate to http://localhost:8080/.
397
+
2. On the first input field, enter a valid user access token.
398
+
3. Click on the "Initialize Call Agent" and enter your Room ID.
399
+
4. Click "Join Room Call"
403
400
404
401
You have now successfully joined a Rooms call!
405
402
406
403
407
404
408
-
## Understanding joining a Room Call
405
+
## Understanding joining a Room call
409
406
410
407
All the code that you have added in your QuickStart app allowed you to successfully start and join a room call. Here is more information about what more methods/handlers you can access for Rooms to extend functionality in your application.
0 commit comments