public final class ServerCallAsync extends Object
| Modifier and Type | Method and Description |
|---|---|
Mono<AddParticipantResult> |
addParticipant(com.azure.communication.common.CommunicationIdentifier participant,
String callBackUri,
String alternateCallerId,
String operationContext)
Add a participant to the call.
|
Mono<com.azure.core.http.rest.Response<AddParticipantResult>> |
addParticipantWithResponse(com.azure.communication.common.CommunicationIdentifier participant,
String callBackUri,
String alternateCallerId,
String operationContext)
Add a participant to the call.
|
Mono<CallRecordingProperties> |
getRecordingState(String recordingId)
Get current recording state by recording id.
|
Mono<com.azure.core.http.rest.Response<CallRecordingProperties>> |
getRecordingStateWithResponse(String recordingId)
Get current recording state by recording id.
|
String |
getServerCallId()
Get server call id property
|
Mono<Void> |
pauseRecording(String recordingId)
Pause recording of the call.
|
Mono<com.azure.core.http.rest.Response<Void>> |
pauseRecordingWithResponse(String recordingId)
Pause recording of the call.
|
Mono<PlayAudioResult> |
playAudio(String audioFileUri,
PlayAudioOptions playAudioOptions)
Play audio in a call.
|
Mono<PlayAudioResult> |
playAudio(String audioFileUri,
String audioFileId,
String callbackUri,
String operationContext)
Play audio in a call.
|
Mono<com.azure.core.http.rest.Response<PlayAudioResult>> |
playAudioWithResponse(String audioFileUri,
PlayAudioOptions playAudioOptions)
Play audio in a call.
|
Mono<Void> |
removeParticipant(String participantId)
Remove a participant from the call.
|
Mono<com.azure.core.http.rest.Response<Void>> |
removeParticipantWithResponse(String participantId)
Remove a participant from the call.
|
Mono<Void> |
resumeRecording(String recordingId)
Resume recording of the call.
|
Mono<com.azure.core.http.rest.Response<Void>> |
resumeRecordingWithResponse(String recordingId)
Resume recording of the call.
|
Mono<StartCallRecordingResult> |
startRecording(String recordingStateCallbackUri)
Start recording of the call.
|
Mono<com.azure.core.http.rest.Response<StartCallRecordingResult>> |
startRecordingWithResponse(String recordingStateCallbackUri,
StartRecordingOptions startRecordingOptions,
com.azure.core.util.Context context)
Start recording of the call.
|
Mono<Void> |
stopRecording(String recordingId)
Stop recording of the call.
|
Mono<com.azure.core.http.rest.Response<Void>> |
stopRecordingWithResponse(String recordingId)
Stop recording of the call.
|
public String getServerCallId()
public Mono<AddParticipantResult> addParticipant(com.azure.communication.common.CommunicationIdentifier participant, String callBackUri, String alternateCallerId, String operationContext)
participant - Added participant.callBackUri - callBackUri to get notifications.alternateCallerId - Phone number to use when adding a phone number participant.operationContext - Value to identify context of the operation. This is used to co-relate other
communications related to this operationCallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<AddParticipantResult>> addParticipantWithResponse(com.azure.communication.common.CommunicationIdentifier participant, String callBackUri, String alternateCallerId, String operationContext)
participant - Added participant.callBackUri - callBackUri to get notifications.alternateCallerId - Phone number to use when adding a phone number participant.operationContext - Value to identify context of the operation. This is used to co-relate other
communications related to this operationCallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<Void> removeParticipant(String participantId)
participantId - Participant id.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<Void>> removeParticipantWithResponse(String participantId)
participantId - Participant id.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<StartCallRecordingResult> startRecording(String recordingStateCallbackUri)
recordingStateCallbackUri - Uri to send state change callbacks.InvalidParameterException - is recordingStateCallbackUri is absolute uri.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<StartCallRecordingResult>> startRecordingWithResponse(String recordingStateCallbackUri, StartRecordingOptions startRecordingOptions, com.azure.core.util.Context context)
recordingStateCallbackUri - Uri to send state change callbacks.startRecordingOptions - StartRecordingOptions custom options.context - A Context representing the request context.InvalidParameterException - is recordingStateCallbackUri is absolute uri.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<Void> stopRecording(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<Void>> stopRecordingWithResponse(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<Void> pauseRecording(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<Void>> pauseRecordingWithResponse(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<Void> resumeRecording(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<Void>> resumeRecordingWithResponse(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<CallRecordingProperties> getRecordingState(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<CallRecordingProperties>> getRecordingStateWithResponse(String recordingId)
recordingId - Recording id to stop.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<PlayAudioResult> playAudio(String audioFileUri, String audioFileId, String callbackUri, String operationContext)
audioFileUri - Media resource uri of the play audio request. Currently only Wave file (.wav) format
audio prompts are supported. More specifically, the audio content in the wave file must
be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.audioFileId - Id for the media in the AudioFileUri, using which we cache the media resource.callbackUri - Callback Uri to receive PlayAudio status notifications.operationContext - The value to identify context of the operation. This is used to co-relate other
communications related to this operationCallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<PlayAudioResult> playAudio(String audioFileUri, PlayAudioOptions playAudioOptions)
audioFileUri - Media resource uri of the play audio request. Currently only Wave file (.wav) format
audio prompts are supported. More specifically, the audio content in the wave file must
be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.playAudioOptions - Options for play audio.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<PlayAudioResult>> playAudioWithResponse(String audioFileUri, PlayAudioOptions playAudioOptions)
audioFileUri - The media resource uri of the play audio request. Currently only Wave file (.wav) format
audio prompts are supported. More specifically, the audio content in the wave file must
be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.playAudioOptions - Options for play audio.CallingServerErrorException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.