Class CallRecordingAsync
java.lang.Object
com.azure.communication.callautomation.CallRecordingAsync
CallRecordingAsync.
-
Method Summary
Modifier and TypeMethodDescriptiondeleteRecording
(String deleteEndpoint) Delete the content located at the deleteEndpointdeleteRecordingWithResponse
(String deleteEndpoint) Delete the content located at the deleteEndpoint Recording deletion will be done using parallel workers.Mono<com.azure.core.util.BinaryData>
downloadContent
(String sourceEndpoint) Reads the entire content.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
downloadContentWithResponse
(String sourceEndpoint, com.azure.core.http.HttpRange range) Reads a range of bytes from a content.downloadStream
(String sourceEndpoint) Download the recording content, e.g.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>
downloadStreamWithResponse
(String sourceEndpoint, com.azure.core.http.HttpRange range) Download the recording content, (e.g.downloadTo
(String sourceEndpoint, Path destinationPath) Download the content located inendpoint
into a file marked bypath
.downloadToWithResponse
(String sourceEndpoint, Path destinationPath, DownloadToFileOptions options) Download the content located inendpoint
into a file marked bypath
.getRecordingState
(String recordingId) Get current recording state by recording id.Mono<com.azure.core.http.rest.Response<RecordingStateResult>>
getRecordingStateWithResponse
(String recordingId) Get current recording state by recording id.pauseRecording
(String recordingId) Pause recording of the call.pauseRecordingWithResponse
(String recordingId) Pause recording of the call.resumeRecording
(String recordingId) Resume recording of the call.resumeRecordingWithResponse
(String recordingId) Resume recording of the call.startRecording
(StartRecordingOptions options) Start recording of the call.Mono<com.azure.core.http.rest.Response<RecordingStateResult>>
Start recording of the call.stopRecording
(String recordingId) Stop recording of the call.stopRecordingWithResponse
(String recordingId) Stop recording of the call.
-
Method Details
-
startRecording
Start recording of the call.- Parameters:
options
- AStartRecordingOptions
object containing different options for recording.- Returns:
- Response for a successful start recording request.
- Throws:
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.
-
startRecordingWithResponse
public Mono<com.azure.core.http.rest.Response<RecordingStateResult>> startRecordingWithResponse(StartRecordingOptions options) Start recording of the call.- Parameters:
options
- AStartRecordingOptions
object containing different options for recording.- Returns:
- Response for a successful start recording request.
- Throws:
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.
-
stopRecording
Stop recording of the call.- Parameters:
recordingId
- Recording id to stop.- Returns:
- Response for a successful stop recording request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stopRecordingWithResponse
Stop recording of the call.- Parameters:
recordingId
- Recording id to stop.- Returns:
- Response for a successful stop recording request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
pauseRecording
Pause recording of the call.- Parameters:
recordingId
- Recording id to stop.- Returns:
- Response for a successful pause recording request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
pauseRecordingWithResponse
Pause recording of the call.- Parameters:
recordingId
- Recording id to stop.- Returns:
- Response for a successful pause recording request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resumeRecording
Resume recording of the call.- Parameters:
recordingId
- Recording id to stop.- Returns:
- response for a successful resume recording request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resumeRecordingWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> resumeRecordingWithResponse(String recordingId) Resume recording of the call.- Parameters:
recordingId
- Recording id to stop.- Returns:
- response for a successful resume recording request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRecordingState
Get current recording state by recording id.- Parameters:
recordingId
- Recording id to stop.- Returns:
- Response for a successful get recording state request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRecordingStateWithResponse
public Mono<com.azure.core.http.rest.Response<RecordingStateResult>> getRecordingStateWithResponse(String recordingId) Get current recording state by recording id.- Parameters:
recordingId
- Recording id to stop.- Returns:
- Response for a successful get recording state request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
downloadStream
Download the recording content, e.g. Recording's metadata, Recording video, from the ACS endpoint passed as parameter.- Parameters:
sourceEndpoint
- - URL where the content is located.- Returns:
- A
Flux
object containing the byte stream of the content requested.
-
downloadStreamWithResponse
public Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> downloadStreamWithResponse(String sourceEndpoint, com.azure.core.http.HttpRange range) Download the recording content, (e.g. Recording's metadata, Recording video, etc.) from theendpoint
.- Parameters:
sourceEndpoint
- - URL where the content is located.range
- - An optionalHttpRange
value containing the range of bytes to download. If missing, the whole content will be downloaded.- Returns:
- A
Mono
object containing aResponse
with the byte stream of the content requested.
-
downloadContent
Reads the entire content.Code Samples
This method supports downloads up to 2GB of data. Use
downloadStream(String)
()} to download larger blobs.- Parameters:
sourceEndpoint
- - URL where the content is located.- Returns:
- A reactive response containing the content data.
-
downloadContentWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> downloadContentWithResponse(String sourceEndpoint, com.azure.core.http.HttpRange range) Reads a range of bytes from a content.This method supports downloads up to 2GB of data. Use
downloadStreamWithResponse(String, HttpRange)
to download larger blobs.- Parameters:
sourceEndpoint
- - URL where the content is located.range
- - An optionalHttpRange
value containing the range of bytes to download. If missing, the whole content will be downloaded.- Returns:
- A reactive response containing the blob data.
-
downloadTo
Download the content located inendpoint
into a file marked bypath
. This download will be done using parallel workers.- Parameters:
sourceEndpoint
- - ACS URL where the content is located.destinationPath
- - File location.- Returns:
- Response for a successful downloadTo request.
-
downloadToWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> downloadToWithResponse(String sourceEndpoint, Path destinationPath, DownloadToFileOptions options) Download the content located inendpoint
into a file marked bypath
. This download will be done using parallel workers.- Parameters:
sourceEndpoint
- - ACS URL where the content is located.destinationPath
- - File location.options
- - an optionalDownloadToFileOptions
object to modify how the download will work.- Returns:
- Response containing the http response information from the download.
-
deleteRecording
Delete the content located at the deleteEndpoint- Parameters:
deleteEndpoint
- - ACS URL where the content is located.- Returns:
- Response for successful delete request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteRecordingWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> deleteRecordingWithResponse(String deleteEndpoint) Delete the content located at the deleteEndpoint Recording deletion will be done using parallel workers.- Parameters:
deleteEndpoint
- - ACS URL where the content is located.- Returns:
- Response for successful delete request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.
-