Class CallMediaAsync

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

public class CallMediaAsync extends Object
CallContent.
  • Method Details

    • play

      public Mono<Void> play(PlaySource playSource, List<com.azure.communication.common.CommunicationIdentifier> playTo)
      Play
      Parameters:
      playSource - A PlaySource 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

      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.
      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 - A PlaySource representing the source to play.
      playTo - the targets to play to
      options - 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 - A PlaySource 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

      public Mono<Void> startRecognizing(CallMediaRecognizeOptions recognizeOptions)
      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

      public Mono<Void> cancelAllMediaOperations()
      Cancels all the queued media operations.
      Returns:
      Void
    • cancelAllMediaOperationsWithResponse

      public Mono<com.azure.core.http.rest.Response<Void>> cancelAllMediaOperationsWithResponse()
      Cancels all the queued media operations
      Returns:
      Response for successful playAll request.