Share via


CallMediaAsync Class

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

public final class CallMediaAsync

CallContent.

Method Summary

Modifier and Type Method and Description
Mono<Void> cancelAllMediaOperations()

Cancels all the queued media operations.

Mono<Response<Void>> cancelAllMediaOperationsWithResponse()

Cancels all the queued media operations

Mono<Void> hold(CommunicationIdentifier targetParticipant)

Holds participant in call.

Mono<Void> hold(CommunicationIdentifier targetParticipant, PlaySource playSource)

Holds participant in call.

Mono<Response<Void>> holdWithResponse(HoldOptions options)

Holds participant in call.

Mono<Void> play(List<PlaySource> playSources, List<CommunicationIdentifier> playTo)

Play

Mono<Void> play(PlaySource playSource, List<CommunicationIdentifier> playTo)

Play

Mono<Void> playToAll(List<PlaySource> playSources)

Play to all participants

Mono<Void> playToAll(PlaySource playSource)

Play to all participants

Mono<Response<Void>> playToAllWithResponse(PlayToAllOptions options)

Play to all participants

Mono<Response<Void>> playWithResponse(PlayOptions options)

Play

Mono<SendDtmfTonesResult> sendDtmfTones(List<DtmfTone> tones, CommunicationIdentifier targetParticipant)

Send DTMF tones

Mono<Response<SendDtmfTonesResult>> sendDtmfTonesWithResponse(SendDtmfTonesOptions options)

Send DTMF tones

Mono<Void> startContinuousDtmfRecognition(CommunicationIdentifier targetParticipant)

Starts continuous Dtmf recognition.

Mono<Response<Void>> startContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options)

Starts continuous Dtmf recognition.

Mono<Void> startMediaStreaming()

Starts media streaming in the call.

Mono<Response<Void>> startMediaStreamingWithResponse(StartMediaStreamingOptions options)

Starts media streaming in the call with options.

Mono<Void> startRecognizing(CallMediaRecognizeOptions recognizeOptions)

Recognize operation.

Mono<Response<Void>> startRecognizingWithResponse(CallMediaRecognizeOptions recognizeOptions)

Recognize operation

Mono<Void> startTranscription()

Starts transcription in the call.

Mono<Response<Void>> startTranscriptionWithResponse(StartTranscriptionOptions options)

Starts transcription in the call with options.

Mono<Void> stopContinuousDtmfRecognition(CommunicationIdentifier targetParticipant)

Stops continuous Dtmf recognition.

Mono<Response<Void>> stopContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options)

Stops continuous Dtmf recognition.

Mono<Void> stopMediaStreaming()

Stops media streaming in the call.

Mono<Response<Void>> stopMediaStreamingWithResponse(StopMediaStreamingOptions options)

Stops media streaming in the call with options.

Mono<Void> stopTranscription()

Stops transcription in the call.

Mono<Response<Void>> stopTranscriptionWithResponse(StopTranscriptionOptions options)

Stops transcription in the call with options.

Mono<Void> unhold(CommunicationIdentifier targetParticipant)

Removes hold from participant in call.

Mono<Response<Void>> unholdWithResponse(UnholdOptions options)

Holds participant in call.

Mono<Void> updateTranscription(String locale)

API to change transcription language

Mono<Response<Void>> updateTranscriptionWithResponse(UpdateTranscriptionOptions options)

API to change transcription language

Methods inherited from java.lang.Object

Method Details

cancelAllMediaOperations

public Mono<Void> cancelAllMediaOperations()

Cancels all the queued media operations.

Returns:

Void

cancelAllMediaOperationsWithResponse

public Mono<Response<Void>> cancelAllMediaOperationsWithResponse()

Cancels all the queued media operations

Returns:

Response for successful playAll request.

hold

public Mono<Void> hold(CommunicationIdentifier targetParticipant)

Holds participant in call.

Parameters:

targetParticipant - the target.

Returns:

Response for successful operation.

hold

public Mono<Void> hold(CommunicationIdentifier targetParticipant, PlaySource playSource)

Holds participant in call.

Parameters:

targetParticipant - the target.
playSource - the play source.

Returns:

Response for successful operation.

holdWithResponse

public Mono<Response<Void>> holdWithResponse(HoldOptions options)

Holds participant in call.

Parameters:

options -
  • Different options to pass to the request.

Returns:

Response for successful operation.

play

public Mono<Void> play(List<PlaySource> playSources, List<CommunicationIdentifier> playTo)

Play

Parameters:

playSources - A List of PlaySource representing the sources to play.
playTo - the targets to play to

Returns:

Void for successful play request.

play

public Mono<Void> play(PlaySource playSource, List<CommunicationIdentifier> playTo)

Play

Parameters:

playSource - A PlaySource representing the source to play.
playTo - the targets to play to

Returns:

Void for successful play request.

playToAll

public Mono<Void> playToAll(List<PlaySource> playSources)

Play to all participants

Parameters:

playSources - A List of PlaySource representing the sources to play.

Returns:

Void for successful playAll request.

playToAll

public Mono<Void> playToAll(PlaySource playSource)

Play to all participants

Parameters:

playSource - A PlaySource representing the source to play.

Returns:

Void for successful playAll request.

playToAllWithResponse

public Mono<Response<Void>> playToAllWithResponse(PlayToAllOptions options)

Play to all participants

Parameters:

options - play to all options.

Returns:

Response for successful playAll request.

playWithResponse

public Mono<Response<Void>> playWithResponse(PlayOptions options)

Play

Parameters:

options - play options.

Returns:

Response for successful play request.

sendDtmfTones

public Mono<SendDtmfTonesResult> sendDtmfTones(List<DtmfTone> tones, CommunicationIdentifier targetParticipant)

Send DTMF tones

Parameters:

tones - tones to be sent
targetParticipant - the target participant

Returns:

Response for successful sendDtmfTones request.

sendDtmfTonesWithResponse

public Mono<Response<SendDtmfTonesResult>> sendDtmfTonesWithResponse(SendDtmfTonesOptions options)

Send DTMF tones

Parameters:

options - SendDtmfTones configuration options

Returns:

Response for successful sendDtmfTones request.

startContinuousDtmfRecognition

public Mono<Void> startContinuousDtmfRecognition(CommunicationIdentifier targetParticipant)

Starts continuous Dtmf recognition.

Parameters:

targetParticipant - the target participant

Returns:

void

startContinuousDtmfRecognitionWithResponse

public Mono<Response<Void>> startContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options)

Starts continuous Dtmf recognition.

Parameters:

options - ContinuousDtmfRecognition configuration options

Returns:

Response for successful start continuous dtmf recognition request.

startMediaStreaming

public Mono<Void> startMediaStreaming()

Starts media streaming in the call.

Returns:

Response for successful operation.

startMediaStreamingWithResponse

public Mono<Response<Void>> startMediaStreamingWithResponse(StartMediaStreamingOptions options)

Starts media streaming in the call with options.

Parameters:

options - Options for the Start media streaming operation.

Returns:

Response for successful operation.

startRecognizing

public Mono<Void> startRecognizing(CallMediaRecognizeOptions recognizeOptions)

Recognize operation.

Parameters:

recognizeOptions - Different attributes for recognize.

Returns:

Response for successful recognize request.

startRecognizingWithResponse

public Mono<Response<Void>> startRecognizingWithResponse(CallMediaRecognizeOptions recognizeOptions)

Recognize operation

Parameters:

recognizeOptions - Different attributes for recognize.

Returns:

Response for successful recognize request.

startTranscription

public Mono<Void> startTranscription()

Starts transcription in the call.

Returns:

Response for successful operation.

startTranscriptionWithResponse

public Mono<Response<Void>> startTranscriptionWithResponse(StartTranscriptionOptions options)

Starts transcription in the call with options.

Parameters:

options - Options for the Start Transcription operation.

Returns:

Response for successful operation.

stopContinuousDtmfRecognition

public Mono<Void> stopContinuousDtmfRecognition(CommunicationIdentifier targetParticipant)

Stops continuous Dtmf recognition.

Parameters:

targetParticipant - the target participant

Returns:

void

stopContinuousDtmfRecognitionWithResponse

public Mono<Response<Void>> stopContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options)

Stops continuous Dtmf recognition.

Parameters:

options - ContinuousDtmfRecognition configuration options

Returns:

Response for successful stop continuous dtmf recognition request.

stopMediaStreaming

public Mono<Void> stopMediaStreaming()

Stops media streaming in the call.

Returns:

Response for successful operation.

stopMediaStreamingWithResponse

public Mono<Response<Void>> stopMediaStreamingWithResponse(StopMediaStreamingOptions options)

Stops media streaming in the call with options.

Parameters:

options - Options for the Stop media streaming operation.

Returns:

Response for successful operation.

stopTranscription

public Mono<Void> stopTranscription()

Stops transcription in the call.

Returns:

Response for successful operation.

stopTranscriptionWithResponse

public Mono<Response<Void>> stopTranscriptionWithResponse(StopTranscriptionOptions options)

Stops transcription in the call with options.

Parameters:

options - Options for the Stop Transcription operation.

Returns:

Response for successful operation.

unhold

public Mono<Void> unhold(CommunicationIdentifier targetParticipant)

Removes hold from participant in call.

Parameters:

targetParticipant - the target.

Returns:

Response for successful operation.

unholdWithResponse

public Mono<Response<Void>> unholdWithResponse(UnholdOptions options)

Holds participant in call.

Parameters:

options - Different options to pass to the request.

Returns:

Response for successful operation.

updateTranscription

public Mono<Void> updateTranscription(String locale)

API to change transcription language

Parameters:

locale - Defines new locale for transcription.

Returns:

Response for successful operation.

updateTranscriptionWithResponse

public Mono<Response<Void>> updateTranscriptionWithResponse(UpdateTranscriptionOptions options)

API to change transcription language

Parameters:

options - Options for the Update Transcription operation.

Returns:

Response for successful operation.

Applies to