Share via


CallRecordingAsync Class

  • java.lang.Object
    • com.azure.communication.callautomation.CallRecordingAsync

public final class CallRecordingAsync

CallRecordingAsync.

Method Summary

Modifier and Type Method and Description
Mono<Void> delete(String deleteUrl)

Delete the content located at the deleteUrl

Mono<Response<Void>> deleteWithResponse(String deleteUrl)

Delete the content located at the deleteUrl Recording deletion will be done using parallel workers.

Mono<BinaryData> downloadContent(String sourceUrl)

Reads the entire content.

Mono<Response<BinaryData>> downloadContentWithResponse(String sourceUrl, HttpRange range)

Reads a range of bytes from a content.

Flux<ByteBuffer> downloadStream(String sourceUrl)

Download the recording content, e.g.

Mono<Response<Flux<ByteBuffer>>> downloadStreamWithResponse(String sourceUrl, HttpRange range)

Download the recording content, (e.g.

Mono<Void> downloadTo(String sourceUrl, Path destinationPath)

Download the content located in endpoint into a file marked by path.

Mono<Void> downloadTo(String sourceUrl, Path destinationPath, DownloadToFileOptions options)

Download the content located in endpoint into a file marked by path.

Mono<RecordingStateResult> getState(String recordingId)

Get current recording state by recording id.

Mono<Response<RecordingStateResult>> getStateWithResponse(String recordingId)

Get current recording state by recording id.

Mono<Void> pause(String recordingId)

Pause recording of the call.

Mono<Response<Void>> pauseWithResponse(String recordingId)

Pause recording of the call.

Mono<Void> resume(String recordingId)

Resume recording of the call.

Mono<Response<Void>> resumeWithResponse(String recordingId)

Resume recording of the call.

Mono<RecordingStateResult> start(StartRecordingOptions options)

Start recording of the call.

Mono<Response<RecordingStateResult>> startWithResponse(StartRecordingOptions options)

Start recording of the call.

Mono<Void> stop(String recordingId)

Stop recording of the call.

Mono<Response<Void>> stopWithResponse(String recordingId)

Stop recording of the call.

Methods inherited from java.lang.Object

Method Details

delete

public Mono<Void> delete(String deleteUrl)

Delete the content located at the deleteUrl

Parameters:

deleteUrl -
  • ACS URL where the content is located.

Returns:

Response for successful delete request.

deleteWithResponse

public Mono<Response<Void>> deleteWithResponse(String deleteUrl)

Delete the content located at the deleteUrl Recording deletion will be done using parallel workers.

Parameters:

deleteUrl -
  • ACS URL where the content is located.

Returns:

Response for successful delete request.

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:

sourceUrl -
  • URL where the content is located.

Returns:

A reactive response containing the content data.

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:

sourceUrl -
  • URL where the content is located.
range -
  • An optional HttpRange value containing the range of bytes to download. If missing, the whole content will be downloaded.

Returns:

A reactive response containing the blob data.

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:

sourceUrl -
  • URL where the content is located.

Returns:

A Flux object containing the byte stream of the content requested.

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:

sourceUrl -
  • URL where the content is located.
range -
  • An optional HttpRange value containing the range of bytes to download. If missing, the whole content will be downloaded.

Returns:

A Mono object containing a Response<T> with the byte stream of the content requested.

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:

sourceUrl -
  • ACS URL where the content is located.
destinationPath -
  • File location.

Returns:

Response for a successful downloadTo request.

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:

sourceUrl -
  • ACS URL where the content is located.
destinationPath -
  • File location.
options -

Returns:

Response containing the http response information from the download.

getState

public Mono<RecordingStateResult> getState(String recordingId)

Get current recording state by recording id.

Parameters:

recordingId - Recording id to stop.

Returns:

Response for a successful get recording state request.

getStateWithResponse

public Mono<Response<RecordingStateResult>> getStateWithResponse(String recordingId)

Get current recording state by recording id.

Parameters:

recordingId - Recording id to stop.

Returns:

Response for a successful get recording state request.

pause

public Mono<Void> pause(String recordingId)

Pause recording of the call.

Parameters:

recordingId - Recording id to stop.

Returns:

Response for a successful pause recording request.

pauseWithResponse

public Mono<Response<Void>> pauseWithResponse(String recordingId)

Pause recording of the call.

Parameters:

recordingId - Recording id to stop.

Returns:

Response for a successful pause recording request.

resume

public Mono<Void> resume(String recordingId)

Resume recording of the call.

Parameters:

recordingId - Recording id to stop.

Returns:

response for a successful resume recording request.

resumeWithResponse

public Mono<Response<Void>> resumeWithResponse(String recordingId)

Resume recording of the call.

Parameters:

recordingId - Recording id to stop.

Returns:

response for a successful resume recording request.

start

public Mono<RecordingStateResult> start(StartRecordingOptions options)

Start recording of the call.

Parameters:

options - A StartRecordingOptions object containing different options for recording.

Returns:

Response for a successful start recording request.

startWithResponse

public Mono<Response<RecordingStateResult>> startWithResponse(StartRecordingOptions options)

Start recording of the call.

Parameters:

options - A StartRecordingOptions object containing different options for recording.

Returns:

Response for a successful start recording request.

stop

public Mono<Void> stop(String recordingId)

Stop recording of the call.

Parameters:

recordingId - Recording id to stop.

Returns:

Response for a successful stop recording request.

stopWithResponse

public Mono<Response<Void>> stopWithResponse(String recordingId)

Stop recording of the call.

Parameters:

recordingId - Recording id to stop.

Returns:

Response for a successful stop recording request.

Applies to