Class CallMediaAsync
java.lang.Object
com.azure.communication.callautomation.CallMediaAsync
CallContent.
-
Method Summary
Modifier and TypeMethodDescriptionCancels all the queued media operations.Cancels all the queued media operationshold(CommunicationIdentifier targetParticipant) Holds participant in call.hold(CommunicationIdentifier targetParticipant, PlaySource playSource) Holds participant in call.holdWithResponse(HoldOptions options) Holds participant in call.play(PlaySource playSource, List<CommunicationIdentifier> playTo) Playplay(List<PlaySource> playSources, List<CommunicationIdentifier> playTo) PlayplayToAll(PlaySource playSource) Play to all participantsplayToAll(List<PlaySource> playSources) Play to all participantsplayToAllWithResponse(PlayToAllOptions options) Play to all participantsplayWithResponse(PlayOptions options) PlaysendDtmfTones(List<DtmfTone> tones, CommunicationIdentifier targetParticipant) Send DTMF tonesMono<com.azure.core.http.rest.Response<SendDtmfTonesResult>> Send DTMF tonesstartContinuousDtmfRecognition(CommunicationIdentifier targetParticipant) Starts continuous Dtmf recognition.Starts continuous Dtmf recognition.startRecognizing(CallMediaRecognizeOptions recognizeOptions) Recognize operation.startRecognizingWithResponse(CallMediaRecognizeOptions recognizeOptions) Recognize operationstopContinuousDtmfRecognition(CommunicationIdentifier targetParticipant) Stops continuous Dtmf recognition.Stops continuous Dtmf recognition.unhold(CommunicationIdentifier targetParticipant) Removes hold from participant in call.unholdWithResponse(UnholdOptions options) Holds participant in call.
-
Method Details
-
play
Play- Parameters:
playSources- A List ofPlaySourcerepresenting the sources to play.playTo- the targets to play to- Returns:
- Void for successful play request.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
play
Play- Parameters:
playSource- APlaySourcerepresenting the source to play.playTo- the targets to play to- Returns:
- Void for successful play request.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
playToAll
Play to all participants- Parameters:
playSources- A List ofPlaySourcerepresenting the sources to play.- Returns:
- Void for successful playAll request.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
playToAll
Play to all participants- Parameters:
playSource- APlaySourcerepresenting the source to play.- Returns:
- Void for successful playAll request.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
playWithResponse
Play- Parameters:
options- play options.- Returns:
- Response for successful play request.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
playToAllWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> playToAllWithResponse(PlayToAllOptions options) Play to all participants- Parameters:
options- play to all options.- Returns:
- Response for successful playAll request.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
startRecognizing
Recognize operation.- Parameters:
recognizeOptions- Different attributes for recognize.- Returns:
- Response for successful recognize request.
-
startRecognizingWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> startRecognizingWithResponse(CallMediaRecognizeOptions recognizeOptions) Recognize operation- Parameters:
recognizeOptions- Different attributes for recognize.- Returns:
- Response for successful recognize request.
-
cancelAllMediaOperations
Cancels all the queued media operations.- Returns:
- Void
-
cancelAllMediaOperationsWithResponse
Cancels all the queued media operations- Returns:
- Response for successful playAll request.
-
sendDtmfTones
public Mono<SendDtmfTonesResult> sendDtmfTones(List<DtmfTone> tones, CommunicationIdentifier targetParticipant) Send DTMF tones- Parameters:
tones- tones to be senttargetParticipant- the target participant- Returns:
- Response for successful sendDtmfTones request.
-
sendDtmfTonesWithResponse
public Mono<com.azure.core.http.rest.Response<SendDtmfTonesResult>> sendDtmfTonesWithResponse(SendDtmfTonesOptions options) Send DTMF tones- Parameters:
options- SendDtmfTones configuration options- Returns:
- Response for successful sendDtmfTones request.
-
startContinuousDtmfRecognition
Starts continuous Dtmf recognition.- Parameters:
targetParticipant- the target participant- Returns:
- void
-
startContinuousDtmfRecognitionWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> startContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options) Starts continuous Dtmf recognition.- Parameters:
options- ContinuousDtmfRecognition configuration options- Returns:
- Response for successful start continuous dtmf recognition request.
-
stopContinuousDtmfRecognition
Stops continuous Dtmf recognition.- Parameters:
targetParticipant- the target participant- Returns:
- void
-
stopContinuousDtmfRecognitionWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> stopContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options) Stops continuous Dtmf recognition.- Parameters:
options- ContinuousDtmfRecognition configuration options- Returns:
- Response for successful stop continuous dtmf recognition request.
-
hold
Holds participant in call.- Parameters:
targetParticipant- the target.- Returns:
- Response for successful operation.
-
hold
Holds participant in call.- Parameters:
targetParticipant- the target.playSource- the play source.- Returns:
- Response for successful operation.
-
holdWithResponse
Holds participant in call.- Parameters:
options- - Different options to pass to the request.- Returns:
- Response for successful operation.
-
unhold
Removes hold from participant in call.- Parameters:
targetParticipant- the target.- Returns:
- Response for successful operation.
-
unholdWithResponse
Holds participant in call.- Parameters:
options- Different options to pass to the request.- Returns:
- Response for successful operation.
-