Skip to content

Commit a7c0595

Browse files
authored
Update call-recording-csharp.md
1 parent ec82f53 commit a7c0595

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Response<RecordingStateResult> response = await callAutomationClient.getCallReco
6060
.StartRecordingAsync(recordingOptions);
6161
```
6262

63-
### 2.1. Only for Unmixed - Specify a user on a channel 0
64-
To produce unmixed audio recording files, you can use the `ChannelAffinity` functionality to specify which user you want to record on each channel. Channel 0 typically records the agent attending or making the call. If you use the affinity channel but don't specify any user to any channel, Call Recording will assign channel 0 to the first person on the call speaking.
63+
### 2.1. Only for Unmixed - Specify a user on channel 0
64+
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 will be assigned to a channel as they speak. If you use `RecordingChannel.Unmixed` but don't use `AudioChannelParticipantOrdering`, Call Recording will assign channel 0 to the first participant speaking.
6565

6666
```csharp
6767
StartRecordingOptions recordingOptions = new StartRecordingOptions(new ServerCallLocator("<ServerCallId>"))
@@ -70,16 +70,10 @@ StartRecordingOptions recordingOptions = new StartRecordingOptions(new ServerCal
7070
RecordingChannel = RecordingChannel.Unmixed,
7171
RecordingFormat = RecordingFormat.Wav,
7272
RecordingStateCallbackEndpoint = new Uri("<CallbackUri>"),
73-
ChannelAffinity = new List<ChannelAffinity>
74-
{
75-
new ChannelAffinity {
76-
Channel = 0,
77-
Participant = new CommunicationUserIdentifier("<ACS_USER_MRI>")
78-
}
79-
}
73+
AudioChannelParticipantOrdering = { new CommunicationUserIdentifier("<ACS_USER_MRI>") }
74+
8075
};
81-
Response<RecordingStateResult> response = await callAutomationClient.getCallRecording()
82-
.StartRecordingAsync(recordingOptions);
76+
Response<RecordingStateResult> response = await callAutomationClient.getCallRecording().StartRecordingAsync(recordingOptions);
8377
```
8478
The `StartRecordingAsync` API response contains the `recordingId` of the recording session.
8579

0 commit comments

Comments
 (0)