Class SimplePlayItem
java.lang.Object
org.red5.server.api.stream.support.SimplePlayItem
- All Implemented Interfaces:
Comparable<SimplePlayItem>,IPlayItem
Simple playlist item implementation
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSimplePlayItem(String name) privateSimplePlayItem(String name, long start, long length) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimplePlayItemBuilder for SimplePlayItemstatic SimplePlayItemBuilder for SimplePlayItemintcompareTo(SimplePlayItem that) booleanlonglongReturns play item length in millisecondsReturns IMessageInput object.Alias for getMessageInputgetName()Returns item namelonggetStart()Returns boolean value that specifies whether item can be playedinthashCode()voidsetCreated(long created) voidsetMsgInput(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:
getMessageInputin 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:
compareToin 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
-