Class SimplePlayItem
java.lang.Object
org.red5.server.api.stream.support.SimplePlayItem
- All Implemented Interfaces:
Comparable<SimplePlayItem>
,IPlayItem
Simple playlist item implementation
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
SimplePlayItem
(String name) private
SimplePlayItem
(String name, long start, long length) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimplePlayItem
Builder for SimplePlayItemstatic SimplePlayItem
Builder for SimplePlayItemint
compareTo
(SimplePlayItem that) boolean
long
long
Returns play item length in millisecondsReturns IMessageInput object.Alias for getMessageInputgetName()
Returns item namelong
getStart()
Returns boolean value that specifies whether item can be playedint
hashCode()
void
setCreated
(long created) void
setMsgInput
(IMessageInput msgInput) Setter for message inputtoString()
-
Field Details
-
created
private long created -
name
Playlist item name -
start
protected final long startStart mark -
length
protected final long lengthLength - amount to play -
msgInput
Message source
-
-
Constructor Details
-
SimplePlayItem
-
SimplePlayItem
-
-
Method Details
-
getLength
public long getLength()Returns play item length in milliseconds -
getMessageInput
Returns IMessageInput object. IMessageInput is an endpoint for a consumer to connect.- Specified by:
getMessageInput
in interfaceIPlayItem
- Returns:
- IMessageInput object
-
getName
Returns item name -
getStart
public long getStart()Returns boolean value that specifies whether item can be played -
getMsgInput
Alias for getMessageInput- Returns:
- Message input source
-
setMsgInput
Setter for message input- Parameters:
msgInput
- Message input
-
getCreated
public long getCreated()- Returns:
- the created
-
setCreated
public void setCreated(long created) - Parameters:
created
- the created to set
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SimplePlayItem>
-
build
Builder for SimplePlayItem- Parameters:
name
- name- Returns:
- play item instance
-
build
Builder for SimplePlayItem- Parameters:
name
- namestart
- startlength
- length- Returns:
- play item instance
-
toString
-