public class SimplePlayItem extends Object implements IPlayItem, Comparable<SimplePlayItem>
| Modifier and Type | Field and Description |
|---|---|
protected long |
length
Length - amount to play
|
protected IMessageInput |
msgInput
Message source
|
protected String |
name
Playlist item name
|
protected long |
start
Start mark
|
| Modifier and Type | Method and Description |
|---|---|
static SimplePlayItem |
build(String name)
Builder for SimplePlayItem
|
static SimplePlayItem |
build(String name,
long start,
long length)
Builder for SimplePlayItem
|
int |
compareTo(SimplePlayItem that) |
boolean |
equals(Object obj) |
long |
getCreated() |
long |
getLength()
Returns play item length in milliseconds
|
IMessageInput |
getMessageInput()
Returns IMessageInput object.
|
IMessageInput |
getMsgInput()
Alias for getMessageInput
|
String |
getName()
Returns item name
|
long |
getStart()
Returns boolean value that specifies whether item can be played
|
int |
hashCode() |
void |
setCreated(long created) |
void |
setMsgInput(IMessageInput msgInput)
Setter for message input
|
String |
toString() |
protected final String name
protected final long start
protected final long length
protected IMessageInput msgInput
public long getLength()
public IMessageInput getMessageInput()
getMessageInput in interface IPlayItempublic String getName()
public long getStart()
public IMessageInput getMsgInput()
public void setMsgInput(IMessageInput msgInput)
msgInput - Message inputpublic long getCreated()
public void setCreated(long created)
created - the created to setpublic int compareTo(SimplePlayItem that)
compareTo in interface Comparable<SimplePlayItem>public static SimplePlayItem build(String name)
name - namepublic static SimplePlayItem build(String name, long start, long length)
name - namestart - startlength - lengthCopyright © 2005–2017 Red5. All rights reserved.