Class MediaHandler
java.lang.Object
io.goobi.viewer.controller.imaging.MediaHandler
Resolves urls audio or video files.
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new MediaHandler instance. -
Method Summary
-
Constructor Details
-
MediaHandler
public MediaHandler() -
MediaHandler
Creates a new MediaHandler instance.- Parameters:
urls- API URL manager for building media resource URLs
-
-
Method Details
-
getMediaUrl
public String getMediaUrl(String type, String format, String pi, String filename) throws de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException Returns the url to the media object for the given pi and filename.- Parameters:
type- The mime type to useformat- media sub-format (e.g. audio or video format extension)pi- The pi of the requested workfilename- The media filename- Returns:
- the url to the media file of the given pi and filename
- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-