CallMedia Class
- java.
lang. Object - com.
azure. communication. callautomation. CallMedia
- com.
public final class CallMedia
CallContent.
Method Summary
Methods inherited from java.lang.Object
Method Details
cancelAllMediaOperations
public void cancelAllMediaOperations()
Cancels all the queued media operations.
cancelAllMediaOperationsWithResponse
public Response<Void> cancelAllMediaOperationsWithResponse(Context context)
Cancels all the queued media operations
Parameters:
Returns:
hold
public void hold(CommunicationIdentifier targetParticipant)
Holds participant in call.
Parameters:
hold
public void hold(CommunicationIdentifier targetParticipant, PlaySource playSource)
Holds participant in call.
Parameters:
holdWithResponse
public Response<Void> holdWithResponse(HoldOptions options, Context context)
Holds participant in call.
Parameters:
- Different options to pass to the request.
Returns:
play
public void play(List<PlaySource> playSources, List<CommunicationIdentifier> playTo)
Play
Parameters:
play
public void play(PlaySource playSource, List<CommunicationIdentifier> playTo)
Play
Parameters:
playToAll
public void playToAll(List<PlaySource> playSources)
Play to all participants
Parameters:
playToAll
public void playToAll(PlaySource playSource)
Play to all participants
Parameters:
playToAllWithResponse
public Response<Void> playToAllWithResponse(PlayToAllOptions options, Context context)
PlayAllWithResponse
Parameters:
Returns:
playWithResponse
public Response<Void> playWithResponse(PlayOptions options, Context context)
PlayWithResponse
Parameters:
Returns:
sendDtmfTones
public SendDtmfTonesResult sendDtmfTones(List<DtmfTone> tones, CommunicationIdentifier targetParticipant)
Sends Dtmf tones
Parameters:
Returns:
sendDtmfTonesWithResponse
public Response<SendDtmfTonesResult> sendDtmfTonesWithResponse(SendDtmfTonesOptions options, Context context)
Sends Dtmf tones
Parameters:
Returns:
startContinuousDtmfRecognition
public void startContinuousDtmfRecognition(CommunicationIdentifier targetParticipant)
Starts continuous Dtmf recognition.
Parameters:
startContinuousDtmfRecognitionWithResponse
public Response<Void> startContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options, Context context)
Starts continuous Dtmf recognition.
Parameters:
Returns:
startMediaStreaming
public void startMediaStreaming()
Starts media streaming in the call.
startMediaStreamingWithResponse
public Response<Void> startMediaStreamingWithResponse(StartMediaStreamingOptions options, Context context)
Starts media streaming in the call.
Parameters:
Returns:
startRecognizing
public void startRecognizing(CallMediaRecognizeOptions callMediaRecognizeOptions)
Recognize tones.
Parameters:
startRecognizingWithResponse
public Response<Void> startRecognizingWithResponse(CallMediaRecognizeOptions callMediaRecognizeOptions, Context context)
Recognize tones.
Parameters:
Returns:
startTranscription
public void startTranscription()
Starts transcription in the call.
startTranscriptionWithResponse
public Response<Void> startTranscriptionWithResponse(StartTranscriptionOptions options, Context context)
Starts transcription in the call.
Parameters:
Returns:
stopContinuousDtmfRecognition
public void stopContinuousDtmfRecognition(CommunicationIdentifier targetParticipant)
Stops continuous Dtmf recognition.
Parameters:
stopContinuousDtmfRecognitionWithResponse
public Response<Void> stopContinuousDtmfRecognitionWithResponse(ContinuousDtmfRecognitionOptions options, Context context)
Stops continuous Dtmf recognition.
Parameters:
Returns:
stopMediaStreaming
public void stopMediaStreaming()
Stop media streaming in the call.
stopMediaStreamingWithResponse
public Response<Void> stopMediaStreamingWithResponse(StopMediaStreamingOptions options, Context context)
Stop media streaming in the call.
Parameters:
Returns:
stopTranscription
public void stopTranscription()
Stops transcription in the call.
stopTranscriptionWithResponse
public Response<Void> stopTranscriptionWithResponse(StopTranscriptionOptions options, Context context)
Stops transcription in the call.
Parameters:
Returns:
unhold
public void unhold(CommunicationIdentifier targetParticipant)
Removes hold from participant in call.
Parameters:
unholdWithResponse
public Response<Void> unholdWithResponse(UnholdOptions options, Context context)
Removes hold from participant in call.
Parameters:
Returns:
updateTranscription
public void updateTranscription(String locale)
Updates transcription language in the call.
Parameters:
updateTranscriptionWithResponse
public Response<Void> updateTranscriptionWithResponse(UpdateTranscriptionOptions options, Context context)
Updates transcription language in the call.
Parameters:
Returns: