Package com.wowza.wms.stream
Interface IMediaIndexItem
-
public interface IMediaIndexItem
IMediaIndexItem: generic interface to mediaIndex
-
-
Field Summary
Fields Modifier and Type Field Description static String
MISSING
media file is missing
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMediaIndexItem
clone()
Make a clone copy of media indexString
getChecksum()
Get checksum for media indexint
getExtent()
Get the duration (milliseconds) of media indexlong
getLastAccessed()
Get last time media index was accessed (milliseconds)boolean
isHitEnd()
Is media index completevoid
setChecksum(IRandomAccessReader file)
Set media index checksum.void
setChecksum(String checksum)
Set media index checksumvoid
setLastAccessed(long time)
Set last time media index accessed (milliseconds)void
touch()
Set last time accessed to current time
-
-
-
Field Detail
-
MISSING
static final String MISSING
media file is missing- See Also:
- Constant Field Values
-
-
Method Detail
-
getExtent
int getExtent()
Get the duration (milliseconds) of media index- Returns:
- duration (milliseconds)
-
getChecksum
String getChecksum()
Get checksum for media index- Returns:
- checksum
-
setChecksum
void setChecksum(String checksum)
Set media index checksum- Parameters:
checksum
-
-
setChecksum
void setChecksum(IRandomAccessReader file)
Set media index checksum. Extract data from File spec- Parameters:
file
-
-
clone
IMediaIndexItem clone()
Make a clone copy of media index- Returns:
- shallow copy of media index
-
getLastAccessed
long getLastAccessed()
Get last time media index was accessed (milliseconds)- Returns:
- time media index was accessed (milliseconds)
-
setLastAccessed
void setLastAccessed(long time)
Set last time media index accessed (milliseconds)- Parameters:
time
- media index was accessed (milliseconds)
-
isHitEnd
boolean isHitEnd()
Is media index complete- Returns:
- true if media index is complete
-
touch
void touch()
Set last time accessed to current time
-
-