public class Stream extends Object
AudioItem.| Constructor and Description |
|---|
Stream() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpectedPreviousToken()
Returns the expected previous token, or
null if not present. |
long |
getOffsetInMilliseconds()
Returns the offset in milliseconds from the start of the stream
|
String |
getToken()
Returns the token associated with the
Stream. |
String |
getUrl()
Returns the URL for the stream.
|
void |
setExpectedPreviousToken(String expectedPreviousToken)
This property is required to be set and allowed only when the
playBehavior is
ENQUEUE. |
void |
setOffsetInMilliseconds(long offsetInMilliseconds)
Set the offset in milliseconds from the start of the stream
|
void |
setToken(String token)
Sets the token associated with the
Stream. |
void |
setUrl(String url)
Sets the URL of the stream.
|
public String getExpectedPreviousToken()
null if not present. If present, the
Play directive will only execute if it matches the token of the active stream on the
device.public void setExpectedPreviousToken(String expectedPreviousToken)
playBehavior is
ENQUEUE. Setting this property when playBehavior is any other value (
REPLACE_ALL or REPLACE_ENQUEUED) causes an error.expectedPreviousToken - an opaque token that represents the expected previous stream.getExpectedPreviousToken()public String getToken()
Stream. The token is an arbitrary string that
may be used for identification purposes.StreamsetExpectedPreviousToken(String)public void setToken(String token)
Stream.token - the token to setgetToken()public String getUrl()
public void setUrl(String url)
url - the URL of the streampublic long getOffsetInMilliseconds()
public void setOffsetInMilliseconds(long offsetInMilliseconds)
offsetInMilliseconds - the offset in milliseconds from the start of the streamCopyright © 2016. All rights reserved.