Class CallRecording
java.lang.Object
com.azure.communication.callautomation.CallRecording
CallRecording.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteRecording
(String deleteEndpoint) Delete the content located in the deleteEndpointcom.azure.core.http.rest.Response<Void>
deleteRecordingWithResponse
(String deleteEndpoint, com.azure.core.util.Context context) Delete the content located in the deleteEndpointcom.azure.core.util.BinaryData
downloadContent
(String sourceEndpoint) Downloads the entire content.com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
downloadContentWithResponse
(String sourceEndpoint, com.azure.core.http.HttpRange range, com.azure.core.util.Context context) Downloads the entire content.void
downloadTo
(String sourceEndpoint, OutputStream destinationStream) Download the recording content, e.g.void
downloadTo
(String sourceEndpoint, Path destinationPath) Download the content located inendpoint
into a file marked bypath
.com.azure.core.http.rest.Response<Void>
downloadToWithResponse
(String sourceEndpoint, OutputStream destinationStream, com.azure.core.http.HttpRange httpRange, com.azure.core.util.Context context) Download the recording content, e.g.com.azure.core.http.rest.Response<Void>
downloadToWithResponse
(String sourceEndpoint, Path destinationPath, DownloadToFileOptions options, com.azure.core.util.Context context) Download the content located inendpoint
into a file marked bypath
.getRecordingState
(String recordingId) Get the current recording state by recording id.com.azure.core.http.rest.Response<RecordingStateResult>
getRecordingStateWithResponse
(String recordingId, com.azure.core.util.Context context) Get the current recording state by recording id.void
pauseRecording
(String recordingId) Pause recording of the call.com.azure.core.http.rest.Response<Void>
pauseRecordingWithResponse
(String recordingId, com.azure.core.util.Context context) Pause recording of the call.void
resumeRecording
(String recordingId) Resume recording of the call.com.azure.core.http.rest.Response<Void>
resumeRecordingWithResponse
(String recordingId, com.azure.core.util.Context context) Resume recording of the call.startRecording
(StartRecordingOptions options) Start recording of the call.com.azure.core.http.rest.Response<RecordingStateResult>
startRecordingWithResponse
(StartRecordingOptions options, com.azure.core.util.Context context) Start recording of the call.void
stopRecording
(String recordingId) Stop recording of the call.com.azure.core.http.rest.Response<Void>
stopRecordingWithResponse
(String recordingId, com.azure.core.util.Context context) Stop recording of the call.
-
Method Details
-
startRecording
Start recording of the call.- Parameters:
options
- AStartRecordingOptions
object containing different options for recording.- Returns:
- Result 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 com.azure.core.http.rest.Response<RecordingStateResult> startRecordingWithResponse(StartRecordingOptions options, com.azure.core.util.Context context) Start recording of the call.- Parameters:
options
- AStartRecordingOptions
object containing different options for recording.context
- AContext
representing the request context.- Returns:
- Result 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.- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stopRecordingWithResponse
public com.azure.core.http.rest.Response<Void> stopRecordingWithResponse(String recordingId, com.azure.core.util.Context context) Stop recording of the call.- Parameters:
recordingId
- Recording id to stop.context
- AContext
representing the request context.- 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.- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
pauseRecordingWithResponse
public com.azure.core.http.rest.Response<Void> pauseRecordingWithResponse(String recordingId, com.azure.core.util.Context context) Pause recording of the call.- Parameters:
recordingId
- Recording id to stop.context
- AContext
representing the request context.- 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
- The recording id to stop.- 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 com.azure.core.http.rest.Response<Void> resumeRecordingWithResponse(String recordingId, com.azure.core.util.Context context) Resume recording of the call.- Parameters:
recordingId
- The recording id to stop.context
- AContext
representing the request context.- 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 the current recording state by recording id.- Parameters:
recordingId
- The 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 com.azure.core.http.rest.Response<RecordingStateResult> getRecordingStateWithResponse(String recordingId, com.azure.core.util.Context context) Get the current recording state by recording id.- Parameters:
recordingId
- The recording id to stop.context
- AContext
representing the request context.- 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.
-
downloadTo
Download the recording content, e.g. Recording's metadata, Recording video, etc., fromendpoint
and write it in theOutputStream
passed as parameter.- Parameters:
sourceEndpoint
- - ACS URL where the content is located.destinationStream
- - A stream where to write the downloaded content.
-
downloadToWithResponse
public com.azure.core.http.rest.Response<Void> downloadToWithResponse(String sourceEndpoint, OutputStream destinationStream, com.azure.core.http.HttpRange httpRange, com.azure.core.util.Context context) Download the recording content, e.g. Recording's metadata, Recording video, etc., fromendpoint
and write it in theOutputStream
passed as parameter.- Parameters:
sourceEndpoint
- - ACS URL where the content is located.destinationStream
- - A stream where to write the downloaded content.httpRange
- - An optionalHttpRange
value containing the range of bytes to download. If missing, the whole content will be downloaded.context
- AContext
representing the request context.- Returns:
- Response containing the http response information from the download.
-
downloadContent
Downloads the entire content.This method supports downloads up to 2GB of data. Use
downloadTo(String, OutputStream)
to download larger blobs.- Parameters:
sourceEndpoint
- - ACS URL where the content is located.- Returns:
- The content of the blob.
-
downloadContentWithResponse
public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> downloadContentWithResponse(String sourceEndpoint, com.azure.core.http.HttpRange range, com.azure.core.util.Context context) Downloads the entire content.This method supports downloads up to 2GB of data. Use
downloadToWithResponse(String, OutputStream, HttpRange, Context)
to download larger blobs.- Parameters:
sourceEndpoint
- ACS 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.context
- AContext
representing the request context.- Returns:
- The content of the blob.
-
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.
-
downloadToWithResponse
public com.azure.core.http.rest.Response<Void> downloadToWithResponse(String sourceEndpoint, Path destinationPath, DownloadToFileOptions options, com.azure.core.util.Context context) 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.context
- AContext
representing the request context.- Returns:
- Response containing the http response information from the download.
-
deleteRecording
Delete the content located in the deleteEndpoint- Parameters:
deleteEndpoint
- - ACS URL where the content is located.
-
deleteRecordingWithResponse
public com.azure.core.http.rest.Response<Void> deleteRecordingWithResponse(String deleteEndpoint, com.azure.core.util.Context context) Delete the content located in the deleteEndpoint- Parameters:
deleteEndpoint
- - ACS URL where the content is located.context
- AContext
representing the request context.- Returns:
- Response for successful delete request..
-