|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.feed.module.mediarss.types.Thumbnail
public class Thumbnail
<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.
Constructor Summary | |
---|---|
Thumbnail(java.net.URI url)
Creates a new thumbnail |
|
Thumbnail(java.net.URI url,
java.lang.Integer width,
java.lang.Integer height)
Creates a new thumbnail |
|
Thumbnail(java.net.URI url,
java.lang.Integer width,
java.lang.Integer height,
Time time)
Creates a new thumbnail |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
- URLMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |