org.red5.server.api.stream.support
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 double |
offset
Offset
|
protected long |
size
Size - for VOD items this will be the file size
|
protected long |
start
Start mark
|
Modifier and Type | Method and Description |
---|---|
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
|
protected final String name
protected final long start
protected final long length
protected long size
protected double offset
protected IMessageInput msgInput
public long getLength()
public IMessageInput getMessageInput()
getMessageInput
in interface IPlayItem
public String getName()
public long getStart()
public IMessageInput getMsgInput()
public void setMsgInput(IMessageInput msgInput)
msgInput
- Message inputpublic long getSize()
public void setSize(long size)
size
- size in bytespublic 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
- Copyright © 2006-2012 The Red5 Project