Skip to content

Commit ff5b3cb

Browse files
committed
Tested new Java code sample
test
1 parent 55e8d87 commit ff5b3cb

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

articles/communication-services/quickstarts/voice-video-calling/get-started-call-recording.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ ms.subservice: calling
1212
zone_pivot_groups: acs-js-csharp-java-python
1313
ms.custom: mode-api, devx-track-extended-java, devx-track-js, devx-track-python
1414
---
15-
# Call Recording Quickstart
15+
# Call recording quickstart
1616

17-
This quickstart gets you started with Call Recording for voice and video calls. To start using the Call Recording APIs, you must have a call in place. Make sure you're familiar with [Calling client SDK](get-started-with-video-calling.md) and/or [Call Automation](../call-automation/callflows-for-customer-interactions.md#build-a-customer-interaction-workflow-using-call-automation) to build the end-user calling experience.
17+
This article describes call recording for voice and video calls. To start using the Call Recording APIs, you must have a call in place. To build the end-user calling experience, make sure you're familiar with [Calling client SDK](get-started-with-video-calling.md) and [Call Automation](../call-automation/callflows-for-customer-interactions.md#build-a-customer-interaction-workflow-using-call-automation).
1818

1919
::: zone pivot="programming-language-csharp"
2020
[!INCLUDE [Test Call Recording with C#](./includes/call-recording-samples/call-recording-csharp.md)]
@@ -32,7 +32,6 @@ This quickstart gets you started with Call Recording for voice and video calls.
3232
[!INCLUDE [Test Call Recording with JavaScript](./includes/call-recording-samples/call-recording-javascript.md)]
3333
::: zone-end
3434

35-
3635
## Clean up resources
3736

3837
If you want to clean up and remove a Communication Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it. Learn more about [cleaning up resources](../create-communication-resource.md#clean-up-resources).
@@ -41,6 +40,6 @@ If you want to clean up and remove a Communication Services subscription, you ca
4140

4241
For more information, see the following articles:
4342

44-
- Download our [Java](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/ServerRecording), [Python](https://github.com/Azure-Samples/communication-services-python-quickstarts/tree/main/call-recording), and [JavaScript](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/call-recording) call recording sample apps
45-
- Learn more about [Call Recording](../../concepts/voice-video-calling/call-recording.md)
46-
- Learn more about [Call Automation](../../concepts/call-automation/call-automation.md)
43+
- Download our [Java](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/ServerRecording), [Python](https://github.com/Azure-Samples/communication-services-python-quickstarts/tree/main/call-recording), and [JavaScript](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/call-recording) call recording sample apps.
44+
- Learn more about [Call Recording](../../concepts/voice-video-calling/call-recording.md).
45+
- Learn more about [Call Automation](../../concepts/call-automation/call-automation.md).

articles/communication-services/quickstarts/voice-video-calling/includes/call-recording-samples/call-recording-java.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,21 @@ You can download the sample app from [GitHub](https://github.com/Azure-Samples/c
1919

2020
## Before you start
2121

22-
Call Recording APIs use exclusively the `serverCallId`to initiate recording. There are a couple of methods you can use to fetch the `serverCallId` depending on your scenario:
22+
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:
2323

2424
### Call Automation scenarios
25-
- When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you have two options to get the `serverCallId`:
25+
26+
When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you have two options to get the `serverCallId`:
2627
1) Once a call is created, a `serverCallId` is returned as a property of the `CallConnected` event after a call has been established. Learn how to [Get CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-java#update-programcs) from Call Automation SDK.
2728
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.
2829

2930
### Calling SDK scenarios
30-
- When using [Calling Client SDK](../../get-started-with-video-calling.md), you can retrieve the `serverCallId` by using the `getServerCallId` method on the call.
31-
Use this example to learn how to [Get serverCallId](../../get-server-call-id.md) from the Calling Client SDK.
32-
3331

32+
When using [Calling Client SDK](../../get-started-with-video-calling.md), you can retrieve the `serverCallId` by using the `getServerCallId` method on the call.
3433

35-
Let's get started with a few simple steps!
36-
34+
Use this example to learn how to [Get serverCallId](../../get-server-call-id.md) from the Calling Client SDK.
3735

36+
Let's get started with a few simple steps.
3837

3938
## 1. Create a Call Automation client
4039

@@ -70,11 +69,12 @@ Response<RecordingStateResult> response = callAutomationClient.getCallRecording(
7069
Start Recording session with your own Azure Blob Storage to store the recording file once recording is complete.
7170

7271
```java
73-
StartRecordingOptions recordingOptions = new StartRecordingOptions(callLocator)
74-
.setRecordingChannel(RecordingChannel.MIXED)
75-
.setRecordingContent(RecordingContent.AUDIO_VIDEO)
76-
.setRecordingFormat(RecordingFormat.MP4)
77-
.setRecordingStorage(new AzureBlobContainerRecordingStorage("<YOUR_STORAGE_CONTAINER_URL>"));
72+
StartRecordingOptions recordingOptions = new StartRecordingOptions(callLocator)
73+
.setRecordingChannel(RecordingChannel.MIXED)
74+
.setRecordingContent(RecordingContent.AUDIO_VIDEO)
75+
.setRecordingFormat(RecordingFormat.MP4)
76+
.setRecordingStorage(new AzureBlobContainerRecordingStorage("<YOUR_STORAGE_CONTAINER_URL>"))
77+
.setExternalStorage(new BlobStorage("<Insert Container / Blob Uri>"));
7878

7979
// //start recording
8080
RecordingStateResult result = callRecording.start(recordingOptions);

0 commit comments

Comments
 (0)