public static class StreamAction.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder(java.util.Collection<java.lang.String> streamUrl) |
Builder(java.lang.String... streamUrl) |
| Modifier and Type | Method and Description |
|---|---|
StreamAction.Builder |
bargeIn(java.lang.Boolean bargeIn) |
StreamAction |
build() |
StreamAction.Builder |
level(java.lang.Float level) |
StreamAction.Builder |
loop(java.lang.Integer loop) |
StreamAction.Builder |
streamUrl(java.util.Collection<java.lang.String> streamUrl) |
StreamAction.Builder |
streamUrl(java.lang.String... streamUrl) |
public Builder(java.util.Collection<java.lang.String> streamUrl)
streamUrl - An array containing a single URL to an mp3 or wav (16-bit) audio file to stream to the
Call or Conversation.public Builder(java.lang.String... streamUrl)
streamUrl - An array containing a single URL to an mp3 or wav (16-bit) audio file to stream to the
Call or Conversation.public StreamAction.Builder streamUrl(java.util.Collection<java.lang.String> streamUrl)
streamUrl - An array containing a single URL to an mp3 or wav (16-bit) audio file to stream to the
Call or Conversation.StreamAction.Builder to keep building.public StreamAction.Builder streamUrl(java.lang.String... streamUrl)
streamUrl - An array containing a single URL to an mp3 or wav (16-bit) audio file to stream to the
Call or Conversation.StreamAction.Builder to keep building.public StreamAction.Builder level(java.lang.Float level)
level - Set the audio level of the stream in the range between -1 and 1 inclusively with a precision
of 0.1. The default value is 0.StreamAction.Builder to keep building.public StreamAction.Builder bargeIn(java.lang.Boolean bargeIn)
bargeIn - Set to true so this action is terminated when the user presses a button on the keypad.
Use this feature to enable users to choose an option without having to listen to the whole
message in your Interactive Voice Response (IVR ). If you set bargeIn to true on one more
Stream actions then the next action in the NCCO stack must be an input action.
The default value is false.
StreamAction.Builder to keep building.public StreamAction.Builder loop(java.lang.Integer loop)
loop - The number of times audio is repeated before the Call is closed.
The default value is 1. Set to 0 to loop infinitely.StreamAction.Builder to keep building.public StreamAction build()
StreamAction object from the stored builder options.