Class PlayAudioOptions
java.lang.Object
com.azure.communication.callingserver.models.PlayAudioOptions
The request payload for playing audio.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the audioFileId property: An id for the media in the AudioFileUri, using which we cache the media resource.Get the callbackUri property: The callback Uri to receive PlayAudio status notifications.Get the operationContext property: The value to identify context of the operation.isLoop()
Get the loop property: The flag indicating whether audio file needs to be played in loop or not.setAudioFileId
(String audioFileId) Set the audioFileId property: An id for the media in the AudioFileUri, using which we cache the media resource.setCallbackUri
(String callbackUri) Set the callbackUri property: The callback Uri to receive PlayAudio status notifications.Set the loop property: The flag indicating whether audio file needs to be played in loop or not.setOperationContext
(String operationContext) Set the operationContext property: The value to identify context of the operation.
-
Constructor Details
-
PlayAudioOptions
public PlayAudioOptions()
-
-
Method Details
-
isLoop
Get the loop property: The flag indicating whether audio file needs to be played in loop or not.- Returns:
- the loop value.
-
setLoop
Set the loop property: The flag indicating whether audio file needs to be played in loop or not.- Parameters:
loop
- the loop value to set.- Returns:
- the PlayAudioOptions object itself.
-
getOperationContext
Get the operationContext property: The value to identify context of the operation.- Returns:
- the operationContext value.
-
setOperationContext
Set the operationContext property: The value to identify context of the operation.- Parameters:
operationContext
- the operationContext value to set.- Returns:
- the PlayAudioOptions object itself.
-
getAudioFileId
Get the audioFileId property: An id for the media in the AudioFileUri, using which we cache the media resource.- Returns:
- the audioFileId value.
-
setAudioFileId
Set the audioFileId property: An id for the media in the AudioFileUri, using which we cache the media resource.- Parameters:
audioFileId
- the audioFileId value to set.- Returns:
- the PlayAudioOptions object itself.
-
getCallbackUri
Get the callbackUri property: The callback Uri to receive PlayAudio status notifications.- Returns:
- the callbackUri value.
-
setCallbackUri
Set the callbackUri property: The callback Uri to receive PlayAudio status notifications.- Parameters:
callbackUri
- the callbackUri value to set.- Returns:
- the PlayAudioOptions object itself.
-