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
description: This section describes how to get the serverCallid from a JavaScript server app
9
+
---
10
+
11
+
12
+
# Get serverCallId as a requirement for call recording server APIs from JavaScript application
13
+
14
+
In a peer to peer calling scenario using the [Calling client SDK](get-started-with-video-calling.md), in order to use Call Recording from Azure Communications you'll have to get the `serverCallId`.
15
+
The following example shows you how to get the `serverCallId` from a JavaScript server application.
16
+
17
+
Call recording is an extended feature of the core Call API. You first need to import calling Features from the Calling SDK.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/call-recording-samples/private-preview-unmixed-audio-recording-server-csharp.md
+8-81Lines changed: 8 additions & 81 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,14 @@ ms.author: bharat
13
13
14
14
## Prerequisites
15
15
16
-
Before you start testing Unmixed Audio recording, please make sure you complete the following steps:
16
+
Before you start testing Unmixed Audio recording, make sure you complete the following steps:
17
17
18
18
- Create an Azure account with an active subscription. For details, see [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
19
19
- Create an Azure Communication Services resource. For details, see [Create an Azure Communication Services resource](../../../create-communication-resource.md). You'll need to record your resource **connection string** for this quickstart.
20
-
- Create an Azure storage account and container, for details, see [Create a storage account](../../../../../storage/common/storage-account-create.md?tabs=azure-portal). You'll need to record your storage **connection string** and **container name** for this quickstart.
21
20
- Subscribe to events via an [Azure Event Grid](../../../../../event-grid/overview.md) Web hook.
22
21
- Download the [.NET SDK](https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-net/NuGet/Azure.Communication.CallingServer/overview/1.0.0-alpha.20220829.1)
23
-
- This Quickstart assumes you have some experience using the [Calling Client SDK](https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/get-started-with-video-calling?pivots=platform-web). **Important**: To fetch serverCallId from Calling SDK, refer to the JavaScript example in the **Appendix** at the end of this document.
24
-
- Make sure to provide the Azure Communication Services Call Recording team with your **immutable azure resource ID** to be whitelisted during the private preview tests.
22
+
- This quickstart assumes you have some experience using the [Calling Client SDK](../../get-started-with-video-calling.md). **Important**: To fetch `serverCallId` from Calling SDK, refer to the [JavaScript](../../get-server-call-id.md) example.
23
+
- Make sure to provide the Azure Communication Services Call Recording team with your [immutable Azure resource ID](../../get-resource-id.md) to be allowlisted during the **private preview** tests.
25
24
26
25
27
26
## 1. Create a Call Automation client
@@ -35,9 +34,9 @@ CallAutomationClient callAutomationClient = new CallAutomationClient("<ACSConnec
35
34
## 2. Start recording session with StartRecordingOptions using 'StartRecordingAsync' server API
36
35
37
36
Use the server call ID received during initiation of the call.
38
-
• RecordingContent is used to pass the recording content type. Use audio
39
-
• RecordingChannel is used to pass the recording channel type. Use unmixed.
40
-
• RecordingFormat is used to pass the format of the recording. Use wav.
37
+
-RecordingContent is used to pass the recording content type. Use audio
38
+
-RecordingChannel is used to pass the recording channel type. Use unmixed.
39
+
-RecordingFormat is used to pass the format of the recording. Use wav.
In order to get your Resource ID whitelisted, please send your Immutable Azure Resource ID to the Call Recording Team. For reference see the image below.
218
-
219
-

Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/call-recording-samples/private-preview-unmixed-audio-recording-server-java.md
+16-87Lines changed: 16 additions & 87 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,19 @@ ms.author: bharat
8
8
---
9
9
10
10
> [!NOTE]
11
-
> Call Recording Unmixed audio is available in US only and may change based on feedback we receive during Private Preview.
11
+
> Call Recording Unmixed audio is available in the US only and may change based on feedback we receive during the Private Preview stage.
12
12
13
13
14
14
## Prerequisites
15
15
16
-
Before you start testing Unmixed Audio recording, please make sure you complete the following steps:
16
+
Before you start testing Unmixed Audio recording, make sure you complete the following steps:
17
17
18
18
- Create an Azure account with an active subscription. For details, see [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
19
19
- Create an Azure Communication Services resource. For details, see [Create an Azure Communication Services resource](../../../create-communication-resource.md). You'll need to record your resource **connection string** for this quickstart.
20
-
- Create an Azure storage account and container, for details, see [Create a storage account](../../../../../storage/common/storage-account-create.md?tabs=azure-portal). You'll need to record your storage **connection string** and **container name** for this quickstart.
21
20
- Subscribe to events via an [Azure Event Grid](../../../../../event-grid/overview.md) Web hook.
22
21
- Download the [Java SDK](https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-java/maven/com.azure%2Fazure-communication-callingserver/overview/1.0.0-alpha.20220829.1)
23
-
- This Quickstart assumes you have some experience using the [Calling CLient SDK](https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/get-started-with-video-calling?pivots=platform-web). **Important**: To fetch serverCallId from Calling SDK, refer to the JavaScript example in the **Appendix** at the end of this document.
24
-
- Make sure to provide the Azure Communication Services Call Recording team with your **immutable azure resource ID** to be whitelisted during the private preview tests.
22
+
- This quickstart assumes you have some experience using the [Calling Client SDK](../../get-started-with-video-calling.md). **Important**: To fetch `serverCallId` from Calling SDK, refer to the [JavaScript](../../get-server-call-id.md) example.
23
+
- Make sure to provide the Azure Communication Services Call Recording team with your [immutable Azure resource ID](../../get-resource-id.md) to be allowlisted during the **private preview** tests.
25
24
26
25
27
26
## 1. Create a Call Automation client
@@ -37,9 +36,9 @@ CallAutomationClient callAutomationClient = new CallAutomationClientBuilder()
37
36
## 2. Start recording session with StartRecordingOptions using 'startRecordingWithResponse' server API
38
37
39
38
Use the server call ID received during initiation of the call.
40
-
• RecordingContent is used to pass the recording content type. Use AUDIO
41
-
• RecordingChannel is used to pass the recording channel type. Use UNMIXED.
42
-
• RecordingFormat is used to pass the format of the recording. Use WAV.
39
+
-RecordingContent is used to pass the recording content type. Use AUDIO
40
+
-RecordingChannel is used to pass the recording channel type. Use UNMIXED.
41
+
-RecordingFormat is used to pass the format of the recording. Use WAV.
@@ -111,7 +110,7 @@ Below is an example of the event schema.
111
110
"recordingStorageInfo": {
112
111
"recordingChunks": [
113
112
{
114
-
"documentId": string, // Document id for retrieving from AMS storage
113
+
"documentId": string, // Document id for the recording chunk
115
114
"contentLocation": string, //Azure Communication Services URL where the content is located
116
115
"metadataLocation": string, // Azure Communication Services URL where the metadata for this chunk is located
117
116
"deleteLocation": string, // Azure Communication Services URL to use to delete all content, including recording and metadata.
@@ -132,11 +131,11 @@ Below is an example of the event schema.
132
131
```
133
132
134
133
Use `downloadToWithResponse` method of `CallRecording` classfor downloading the recorded media. Following are the supported parameters for `downloadToWithResponse` method:
135
-
• `contentLocation`: Azure Communication Services URL where the content is located.
136
-
• `destinationPath` : File location.
137
-
• `parallelDownloadOptions`: An optional ParallelDownloadOptions object to modify how the - parallel download will work.
138
-
• `overwrite`: True to overwrite the file if it exists.
139
-
• `context`: A Context representing the request context.
134
+
- `contentLocation`: Azure Communication Services URL where the content is located.
135
+
- `destinationPath` : File location.
136
+
- `parallelDownloadOptions`: An optional ParallelDownloadOptions object to modify how the - parallel download will work.
137
+
- `overwrite`: True to overwrite the file if it exists.
138
+
- `context`: A Context representing the request context.
140
139
141
140
142
141
```java
@@ -154,80 +153,10 @@ The content location and document IDs for the recording files can be fetched fro
154
153
## 7. Delete recording content using ‘deleteRecordingWithResponse’ server API.
155
154
156
155
Use `deleteRecordingWithResponse` method of `CallRecording` classfor deleting the recorded media. Following are the supported parameters for `deleteRecordingWithResponse` method:
157
-
• `deleteLocation`: Azure Communication Services URL where the content to delete is located.
158
-
• `context`: A Context representing the request context.
156
+
- `deleteLocation`: Azure Communication Services URL where the content to delete is located.
157
+
- `context`: A Context representing the request context.
0 commit comments