CallRecording Class
- java.
lang. Object - com.
azure. communication. callautomation. CallRecording
- com.
public final class CallRecording
CallRecording.
Method Summary
Methods inherited from java.lang.Object
Method Details
delete
public void delete(String deleteUrl)
Delete the content located in the deleteUrl
Parameters:
- ACS URL where the content is located.
deleteWithResponse
public Response<Void> deleteWithResponse(String deleteUrl, Context context)
Delete the content located in the deleteUrl
Parameters:
- ACS URL where the content is located.
Returns:
downloadContent
public BinaryData downloadContent(String sourceUrl)
Downloads the entire content.
This method supports downloads up to 2GB of data. Use downloadTo(String sourceUrl, OutputStream destinationStream) to download larger blobs.
Parameters:
- ACS URL where the content is located.
Returns:
downloadContentWithResponse
public Response<BinaryData> downloadContentWithResponse(String sourceUrl, HttpRange range, Context context)
Downloads the entire content.
This method supports downloads up to 2GB of data. Use downloadTo(String sourceUrl, OutputStream destinationStream, HttpRange httpRange, Context context) to download larger blobs.
Parameters:
Returns:
downloadTo
public void downloadTo(String sourceUrl, OutputStream destinationStream)
Download the recording content, e.g. Recording's metadata, Recording video, etc., from endpoint and write it in the OutputStream passed as parameter.
Parameters:
- ACS URL where the content is located.
- A stream where to write the downloaded content.
downloadTo
public void downloadTo(String sourceUrl, OutputStream destinationStream, HttpRange httpRange, Context context)
Download the recording content, e.g. Recording's metadata, Recording video, etc., from endpoint and write it in the OutputStream passed as parameter.
Parameters:
- ACS URL where the content is located.
- A stream where to write the downloaded content.
- An optional HttpRange value containing the range of bytes to download. If missing, the whole content will be downloaded.
downloadTo
public 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.
downloadTo
public void downloadTo(String sourceUrl, Path destinationPath, DownloadToFileOptions options, Context context)
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.
getState
public RecordingStateResult getState(String recordingId)
Get the current recording state by recording id.
Parameters:
Returns:
getStateWithResponse
public Response<RecordingStateResult> getStateWithResponse(String recordingId, Context context)
Get the current recording state by recording id.
Parameters:
Returns:
pause
public void pause(String recordingId)
Pause recording of the call.
Parameters:
pauseWithResponse
public Response<Void> pauseWithResponse(String recordingId, Context context)
Pause recording of the call.
Parameters:
Returns:
resume
public void resume(String recordingId)
Resume recording of the call.
Parameters:
resumeWithResponse
public Response<Void> resumeWithResponse(String recordingId, Context context)
Resume recording of the call.
Parameters:
Returns:
start
public RecordingStateResult start(StartRecordingOptions options)
Start recording of the call.
Parameters:
Returns:
startWithResponse
public Response<RecordingStateResult> startWithResponse(StartRecordingOptions options, Context context)
Start recording of the call.
Parameters:
Returns:
stop
public void stop(String recordingId)
Stop recording of the call.
Parameters:
stopWithResponse
public Response<Void> stopWithResponse(String recordingId, Context context)
Stop recording of the call.
Parameters:
Returns: