|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.api.stream.support.DynamicPlayItem
public class DynamicPlayItem
Dynamic playlist item implementation
Field Summary | |
---|---|
protected long |
length
Length - amount to play |
protected IMessageInput |
msgInput
Message source |
protected String |
name
Playlist item name |
protected double |
offset
Offset |
protected long |
size
Size - for VOD items this will be the file size |
protected long |
start
Start mark |
Method Summary | |
---|---|
static DynamicPlayItem |
build(String name,
long start,
long length)
Builder for DynamicPlayItem |
static DynamicPlayItem |
build(String name,
long start,
long length,
double offset)
Builder for DynamicPlayItem |
boolean |
equals(Object obj)
|
long |
getLength()
Returns play item length in milliseconds |
IMessageInput |
getMessageInput()
Returns IMessageInput object. |
IMessageInput |
getMsgInput()
Alias for getMessageInput |
String |
getName()
Returns item name |
long |
getSize()
Returns size in bytes |
long |
getStart()
Returns boolean value that specifies whether item can be played |
int |
hashCode()
|
void |
setMsgInput(IMessageInput msgInput)
Setter for message input |
void |
setSize(long size)
Set the size in bytes |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String name
protected final long start
protected final long length
protected long size
protected double offset
protected IMessageInput msgInput
Method Detail |
---|
public long getLength()
getLength
in interface IPlayItem
public IMessageInput getMessageInput()
getMessageInput
in interface IPlayItem
public String getName()
getName
in interface IPlayItem
public long getStart()
getStart
in interface IPlayItem
public IMessageInput getMsgInput()
public void setMsgInput(IMessageInput msgInput)
msgInput
- Message inputpublic long getSize()
public void setSize(long size)
size
- size in bytespublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public static DynamicPlayItem build(String name, long start, long length)
name
- start
- length
-
public static DynamicPlayItem build(String name, long start, long length, double offset)
name
- start
- length
- offset
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |