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 operationsplay
(PlaySource playSource, List<com.azure.communication.common.CommunicationIdentifier> playTo) PlayplayToAll
(PlaySource playSource) Play to all participantsplayToAllWithResponse
(PlaySource playSource, PlayOptions options) Play to all participantsplayWithResponse
(PlaySource playSource, List<com.azure.communication.common.CommunicationIdentifier> playTo, PlayOptions options) PlaystartRecognizing
(CallMediaRecognizeOptions recognizeOptions) Recognize operation.startRecognizingWithResponse
(CallMediaRecognizeOptions recognizeOptions) Recognize operation
-
Method Details
-
play
public Mono<Void> play(PlaySource playSource, List<com.azure.communication.common.CommunicationIdentifier> playTo) Play- Parameters:
playSource
- APlaySource
representing the source to play.playTo
- the targets to play to- Returns:
- Void for successful play request.
- Throws:
CallingServerErrorException
- 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
- APlaySource
representing the source to play.- Returns:
- Void for successful playAll request.
- Throws:
CallingServerErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
playWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> playWithResponse(PlaySource playSource, List<com.azure.communication.common.CommunicationIdentifier> playTo, PlayOptions options) Play- Parameters:
playSource
- APlaySource
representing the source to play.playTo
- the targets to play tooptions
- play options.- Returns:
- Response for successful play request.
- Throws:
CallingServerErrorException
- 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(PlaySource playSource, PlayOptions options) Play to all participants- Parameters:
playSource
- APlaySource
representing the source to play.options
- play options.- Returns:
- Response for successful playAll request.
- Throws:
CallingServerErrorException
- 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.
-