Skip to content

Commit 881382e

Browse files
authored
Update call-recording-java.md
1 parent a7c0595 commit 881382e

File tree

1 file changed

+3
-4
lines changed
  • articles/communication-services/quickstarts/voice-video-calling/includes/call-recording-samples

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,16 @@ Response<StartCallRecordingResult> response = callAutomationClient.getCallRecord
6262

6363
```
6464

65-
### 2.1. Only for Unmixed - Specify a user on a channel 0
66-
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.
65+
### 2.1. Only for Unmixed - Specify a user on channel 0
66+
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.
6767

6868
```java
6969
StartRecordingOptions recordingOptions = new StartRecordingOptions(new ServerCallLocator("<serverCallId>"))
7070
.setRecordingChannel(RecordingChannel.UNMIXED)
7171
.setRecordingFormat(RecordingFormat.WAV)
7272
.setRecordingContent(RecordingContent.AUDIO)
7373
.setRecordingStateCallbackUrl("<recordingStateCallbackUrl>")
74-
.setChannelAffinity(List.of(
75-
new ChannelAffinity(0, new CommunicationUserIdentifier("<participantMri>"));
74+
.setAudioChannelParticipantOrdering(List.of(new CommunicationUserIdentifier("<participantMri>")));
7675

7776
Response<RecordingStateResult> response = callAutomationClient.getCallRecording()
7877
.startRecordingWithResponse(recordingOptions, null);

0 commit comments

Comments
 (0)