public class Thumbnail
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
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.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private java.lang.Integer |
thumbHeight |
private java.net.URI |
thumbUrl |
private java.lang.Integer |
thumbWidth |
private Time |
time |
Constructor and Description |
---|
Thumbnail(java.net.URI url) |
Thumbnail(java.net.URI url,
java.lang.Integer width,
java.lang.Integer height) |
Thumbnail(java.net.URI url,
java.lang.Integer width,
java.lang.Integer height,
Time time) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getHeight()
Returns the thumbHeight.
|
Time |
getTime()
returns the time that the thumbnail was captured from its source
|
java.net.URI |
getUrl()
Retursn the URL
|
java.lang.Integer |
getWidth()
Returns width.
|
int |
hashCode() |
java.lang.String |
toString() |
private static final long serialVersionUID
private java.lang.Integer thumbHeight
private java.lang.Integer thumbWidth
private final Time time
private java.net.URI thumbUrl
public Thumbnail(java.net.URI url, java.lang.Integer width, java.lang.Integer height, Time time)
url
- URL to thumbnailwidth
- width in pixelsheight
- height in pixelstime
- Timecode representing the thumbnails position in a source.public Thumbnail(java.net.URI url, java.lang.Integer width, java.lang.Integer height)
url
- URLwidth
- widthheight
- heightpublic Thumbnail(java.net.URI url)
url
- URLpublic java.lang.Integer getHeight()
public Time getTime()
public java.net.URI getUrl()
public java.lang.Integer getWidth()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object