Class Thumbnail
- java.lang.Object
-
- com.rometools.modules.mediarss.types.Thumbnail
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Thumbnail extends Object implements Cloneable, Serializable
<media:thumbnail>Allows particular images to be used as representative images for the media object. If multiple thumbnails are included, and time coding is not at play, it is assumed that the images are in order of importance. It has 1 required attribute and 3 optional attributes.
<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123" />
url specifies the url of the thumbnail. It is a required attribute.
height specifies the height of the thumbnail. It is an optional attribute.
width specifies the width of the thumbnail. It is an optional attribute.
time specifies the time offset in relation to the media object. Typically this is used when creating multiple keyframes within a single video. The format for this attribute should be in the DSM-CC's Normal Play Time (NTP) as used in RTSP [RFC 2326 3.6 Normal Play Time]. It is an optional attribute.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object obj)IntegergetHeight()Returns the thumbHeight.TimegetTime()returns the time that the thumbnail was captured from its sourceURIgetUrl()Retursn the URLIntegergetWidth()Returns width.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Thumbnail
public Thumbnail(URI url, Integer width, Integer height, Time time)
- Parameters:
url- URL to thumbnailwidth- width in pixelsheight- height in pixelstime- Timecode representing the thumbnails position in a source.
-
Thumbnail
public Thumbnail(URI url, Integer width, Integer height)
- Parameters:
url- URLwidth- widthheight- height
-
Thumbnail
public Thumbnail(URI url)
- Parameters:
url- URL
-
-
Method Detail
-
getHeight
public Integer getHeight()
Returns the thumbHeight.- Returns:
- Returns the thumbHeight.
-
getTime
public Time getTime()
returns the time that the thumbnail was captured from its source- Returns:
- returns the time that the thumbnail was captured from its source
-
getUrl
public URI getUrl()
Retursn the URL- Returns:
- Returns the thumbUrl.
-
getWidth
public Integer getWidth()
Returns width.- Returns:
- Returns the thumbWidth.
-
-