Class 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLoop()  
      java.lang.String[] getStreamUrl()  
      java.lang.String toJson()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamPayload

        public StreamPayload​(java.lang.String streamUrl,
                             int loop)