public class Thumbnail extends Object implements Cloneable, 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.
Constructor and Description |
---|
Thumbnail(URI url) |
Thumbnail(URI url,
Integer width,
Integer height) |
Thumbnail(URI url,
Integer width,
Integer height,
Time time) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object obj) |
Integer |
getHeight()
Returns the thumbHeight.
|
Time |
getTime()
returns the time that the thumbnail was captured from its source
|
URI |
getUrl()
Retursn the URL
|
Integer |
getWidth()
Returns width.
|
int |
hashCode() |
String |
toString() |
public Thumbnail(URI url, Integer width, Integer height, Time time)
url
- URL to thumbnailwidth
- width in pixelsheight
- height in pixelstime
- Timecode representing the thumbnails position in a source.public Thumbnail(URI url, Integer width, Integer height)
url
- URLwidth
- widthheight
- heightpublic Thumbnail(URI url)
url
- URLpublic Integer getHeight()
public Time getTime()
public URI getUrl()
public Integer getWidth()
Copyright © 2017. All rights reserved.