Modifier and Type | Field and Description |
---|---|
static String |
knownMillisTimeStampDescriptor |
static String |
knownPositionDescriptor |
static String |
lengthDescriptor |
static long |
NO_PROGRESS
if the audio has no specified beginning or end (for example a LiveStream of the audio output of the computer).
|
Constructor and Description |
---|
Progress(long length,
long knownPosition) |
Progress(long length,
long knownPosition,
long knownMillisTimeStamp) |
Modifier and Type | Method and Description |
---|---|
HashMap<String,Long> |
export()
exports the progress
|
long |
getLength()
returns the length of the Track in milliseconds
|
long |
getPosition()
returns the current position in milliseconds
|
static Optional<Progress> |
importResource(ResourceModel resourceModel)
creates a Progress-object from the resourceModel
|
String |
toString() |
public static long NO_PROGRESS
public static final String lengthDescriptor
public static final String knownPositionDescriptor
public static final String knownMillisTimeStampDescriptor
public Progress(long length, long knownPosition)
public Progress(long length, long knownPosition, long knownMillisTimeStamp)
public long getLength()
public long getPosition()
public static Optional<Progress> importResource(ResourceModel resourceModel)
resourceModel
- the ResourceModelCopyright © 2016. All rights reserved.