Package com.vonage.client.voice
Class StreamPayload
java.lang.Object
com.vonage.client.voice.StreamPayload
public class StreamPayload extends java.lang.Object
The JSON payload that will be sent in a
StreamRequest.
streamUrl: An array containing a single URL to an mp3 or wav (16-bit) audio file.
loop: The number of times the audio file at streamUrl is repeated before the stream ends. Set to 0 to loop infinitely
-
Constructor Summary
Constructors Constructor Description StreamPayload(java.lang.String streamUrl, int loop) -
Method Summary
Modifier and Type Method Description intgetLoop()java.lang.String[]getStreamUrl()java.lang.StringtoJson()