CallRecordingAsync Class
- java.
lang. Object - com.
azure. communication. callautomation. CallRecordingAsync
- com.
public final class CallRecordingAsync
CallRecordingAsync.
Method Summary
Methods inherited from java.lang.Object
Method Details
delete
public Mono<Void> delete(String deleteUrl)
Delete the content located at the deleteUrl
Parameters:
- ACS URL where the content is located.
Returns:
deleteWithResponse
public Mono<Response<Void>> deleteWithResponse(String deleteUrl)
Delete the content located at the deleteUrl Recording deletion will be done using parallel workers.
Parameters:
- ACS URL where the content is located.
Returns:
downloadContent
public Mono<BinaryData> downloadContent(String sourceUrl)
Reads the entire content.
Code Samples
This method supports downloads up to 2GB of data. Use downloadStream(String sourceUrl) ()} to download larger blobs.
Parameters:
- URL where the content is located.
Returns:
downloadContentWithResponse
public Mono<Response<BinaryData>> downloadContentWithResponse(String sourceUrl, HttpRange range)
Reads a range of bytes from a content.
This method supports downloads up to 2GB of data. Use downloadStreamWithResponse(String sourceUrl, HttpRange range) to download larger blobs.
Parameters:
- URL where the content is located.
- An optional HttpRange value containing the range of bytes to download. If missing, the whole content will be downloaded.
Returns:
downloadStream
public Flux<ByteBuffer> downloadStream(String sourceUrl)
Download the recording content, e.g. Recording's metadata, Recording video, from the ACS endpoint passed as parameter.
Parameters:
- URL where the content is located.
Returns:
downloadStreamWithResponse
public Mono<Response<Flux<ByteBuffer>>> downloadStreamWithResponse(String sourceUrl, HttpRange range)
Download the recording content, (e.g. Recording's metadata, Recording video, etc.) from the endpoint
.
Parameters:
- URL where the content is located.
- An optional HttpRange value containing the range of bytes to download. If missing, the whole content will be downloaded.
Returns:
downloadTo
public Mono<Void> downloadTo(String sourceUrl, Path destinationPath)
Download the content located in endpoint
into a file marked by path
. This download will be done using parallel workers.
Parameters:
- ACS URL where the content is located.
- File location.
Returns:
downloadTo
public Mono<Void> downloadTo(String sourceUrl, Path destinationPath, DownloadToFileOptions options)
Download the content located in endpoint
into a file marked by path
. This download will be done using parallel workers.
Parameters:
- ACS URL where the content is located.
- File location.
- an optional DownloadToFileOptions object to modify how the download will work.
Returns:
getState
public Mono<RecordingStateResult> getState(String recordingId)
Get current recording state by recording id.
Parameters:
Returns:
getStateWithResponse
public Mono<Response<RecordingStateResult>> getStateWithResponse(String recordingId)
Get current recording state by recording id.
Parameters:
Returns:
pause
public Mono<Void> pause(String recordingId)
Pause recording of the call.
Parameters:
Returns:
pauseWithResponse
public Mono<Response<Void>> pauseWithResponse(String recordingId)
Pause recording of the call.
Parameters:
Returns:
resume
public Mono<Void> resume(String recordingId)
Resume recording of the call.
Parameters:
Returns:
resumeWithResponse
public Mono<Response<Void>> resumeWithResponse(String recordingId)
Resume recording of the call.
Parameters:
Returns:
start
public Mono<RecordingStateResult> start(StartRecordingOptions options)
Start recording of the call.
Parameters:
Returns:
startWithResponse
public Mono<Response<RecordingStateResult>> startWithResponse(StartRecordingOptions options)
Start recording of the call.
Parameters:
Returns:
stop
public Mono<Void> stop(String recordingId)
Stop recording of the call.
Parameters:
Returns:
stopWithResponse
public Mono<Response<Void>> stopWithResponse(String recordingId)
Stop recording of the call.
Parameters:
Returns: