org.mycore.backend.realhelix
Class MCRAVExtRealHelix
java.lang.Object
org.mycore.datamodel.ifs.MCRAudioVideoExtender
org.mycore.backend.realhelix.MCRAVExtRealHelix
public class MCRAVExtRealHelix
- extends MCRAudioVideoExtender
This class implements the AudioVideoExtender functions for Real Server 8 and
Helix Universal Streaming Server 9 instances. It reads technical metadata
about stored assets by parsing the Real Server's "View Source" responses and
gets a player starter file using the "/ramgen/" mount point. The parameters
can be configured in mycore.properties:
MCR.IFS.AVExtender..RamGenBaseURL URL of ramgen mount point
MCR.IFS.AVExtender..AsxGenBaseURL URL of asxgen mount point
MCR.IFS.AVExtender..ViewSourceBaseURL URL of view source function
MCR.IFS.AVExtender..RealPlayerURL Download URL for RealOne Player
MCR.IFS.AVExtender..MediaPlayerURL Download URL for Microsoft Player
- Version:
- $Revision: 15022 $ $Date: 2009-03-26 14:53:00 +0100 (Thu, 26 Mar 2009) $
- Author:
- Frank Lützenkirchen
| Fields inherited from class org.mycore.datamodel.ifs.MCRAudioVideoExtender |
AUDIO, baseMetadata, basePlayerStarter, bitRate, contentTypeID, durationHours, durationMinutes, durationSeconds, file, frameRate, mediaType, playerDownloadURL, playerStarterCT, size, VIDEO |
|
Method Summary |
void |
getPlayerStarterTo(OutputStream out,
String startPos,
String stopPos)
Writes a metafile that starts a streaming player for this asset to an
OutputStream, e. |
void |
init(MCRFileReader file)
Initializes this AudioVideoExtender and gets technical metadata from the
server that holds the streaming asset. |
| Methods inherited from class org.mycore.datamodel.ifs.MCRAudioVideoExtender |
forwardData, getBetween, getBitRate, getBitRateFormatted, getConnection, getConnectTimeout, getContentTypeID, getDurationFormatted, getDurationHours, getDurationMinutes, getDurationSeconds, getDurationTimecode, getFrameRate, getFrameRateFormatted, getMediaType, getMetadata, getPlayerDownloadURL, getPlayerStarterContentType, getSize, getSizeFormatted, isAudio, isVideo, toString |
MCRAVExtRealHelix
public MCRAVExtRealHelix()
init
public void init(MCRFileReader file)
throws MCRPersistenceException
- Description copied from class:
MCRAudioVideoExtender
- Initializes this AudioVideoExtender and gets technical metadata from the
server that holds the streaming asset. Subclasses must override this
method!
- Overrides:
init in class MCRAudioVideoExtender
- Parameters:
file - the MCRFile that this extender belongs to
- Throws:
MCRPersistenceException
getPlayerStarterTo
public void getPlayerStarterTo(OutputStream out,
String startPos,
String stopPos)
throws MCRPersistenceException
- Description copied from class:
MCRAudioVideoExtender
- Writes a metafile that starts a streaming player for this asset to an
OutputStream, e. g. a ServletOutputStream. The browser then streams the
asset. The client may provide a start and stop position to play only a
certain part of the asset.
- Specified by:
getPlayerStarterTo in class MCRAudioVideoExtender
- Parameters:
out - the OutputStream to write the player starter tostartPos - the optional start position in the format "hh:mm:ss"stopPos - the optional stop position in the format "hh:mm:ss"
- Throws:
MCRPersistenceException