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/voice-video-calling/includes/call-recording-samples/call-recording-java.md
+16-12Lines changed: 16 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,24 +21,28 @@ You can download the sample app from [GitHub](https://github.com/Azure-Samples/c
21
21
22
22
## Before you start
23
23
24
-
Call Recording APIs exclusively use the `serverCallId`to initiate recording. There are a couple of methods you can use to fetch the `serverCallId` depending on your scenario:
24
+
Call Recording APIs use the `callConnectionId` or `serverCallId`to initiate recording. There are a couple of methods you can use to fetch the these IDs depending on your scenario:
25
25
26
-
### Call Automation scenarios
26
+
### How to fetch callConnectionId
27
27
28
-
When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you have two options to get the `serverCallId`:
28
+
When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you will receive the `callConnectionId` from the response event from a `createCall`, `answer`, or `connect` requests when initiating the call.
29
+
30
+
### How to fetch serverCallId
29
31
30
-
1. Once a call is created, a `serverCallId` is returned as a property of the `CallConnected` event after a call is established. Learn how to [Get CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-java#update-programcs) from Call Automation SDK.
32
+
When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you have two options to get the `serverCallId`:
31
33
32
-
2. Once you answer the call or a call is created the`serverCallId`is returned as a property of the `AnswerCallResult` or `CreateCallResult` API responses respectively.
34
+
1. When you establish a call, it returns a`serverCallId` as a property of the `CallConnected` event after a call is established. Learn how to [Get CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-csharp#update-programcs) from Call Automation SDK.
33
35
34
-
### Calling SDK scenarios
36
+
2. When you answer the call or a call is created, it returns the `serverCallId` as a property of the `AnswerCallResult` or `CreateCallResult` API responses respectively.
35
37
36
-
When using [Calling Client SDK](../../get-started-with-video-calling.md), you can retrieve the `serverCallId` by using the `getServerCallId` method on the call.
37
38
39
+
When using [Calling Client SDK](../../get-started-with-video-calling.md), you can retrieve the `serverCallId` by using the `getServerCallId` method on the call.
38
40
Use this example to learn how to [Get serverCallId](../../get-server-call-id.md) from the Calling Client SDK.
39
41
40
42
Let's get started with a few simple steps.
41
43
44
+
Let's get started with a few simple steps.
45
+
42
46
## 1. Create a Call Automation client
43
47
44
48
Call Recording APIs are part of the Azure Communication Services [Call Automation](../../../../concepts/call-automation/call-automation.md) libraries. So you need to create a Call Automation client.
@@ -53,13 +57,13 @@ CallAutomationClient callAutomationClient = new CallAutomationClientBuilder()
53
57
54
58
## 2. Start recording session with StartRecordingOptions using `startWithResponse` API
55
59
56
-
Use the `serverCallId` received during initiation of the call.
60
+
Use the `callConnectionId` or `serverCallId` received during initiation of the call.
57
61
- Use `RecordingContent` to pass the recording content type. Use `AUDIO`.
58
62
- Use `RecordingChannel` to pass the recording channel type. Use `MIXED` or `UNMIXED`.
59
63
- Use `RecordingFormat` to pass the format of the recording. Use `WAV`.
To produce unmixed audio recording files, you can use the `AudioChannelParticipantOrdering` functionality to specify which user you want to record on channel 0. The rest of the participants are assigned to a channel as they speak. If you use `RecordingChannel.Unmixed` but don't use `AudioChannelParticipantOrdering`, Call Recording assigns channel 0 to the first participant speaking.
0 commit comments