public class Content extends BaseMedia
<media:content url="http://www.foo.com/movie.mov" fileSize="12216320" type="video/quicktime" medium="video" isDefault="true" expression="full" bitrate="128" framerate="25" samplingrate="44.1" channels="2" duration="185" height="200" width="300" lang="en"/>
| Constructor and Description |
|---|
Content() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getBitrate()
Returns the integer representing the kilobits per second rate of media.
|
Integer |
getChannels()
Returns the number of audio channels in the media object.
|
Integer |
getDuration()
Returns the integer which represents the runtime of the video in seconds.
|
String |
getExpression()
Specifies whether you're linking to a short sample of a longer video ("sample"), or if you're linking to the full thing ("full"),
or if you're linking to a live stream ("nonstop").
|
Long |
getFileSize()
Returns the long integer representing the number of bytes of the media object.
|
Integer |
getFramerate()
Returns the integer that specifies the number of frames per second of the media object.
|
Integer |
getHeight()
Returns the integer representing the value in pixels for the height of the media object.
|
Boolean |
getIsDefault()
Specifies if this is the default object that should be used for the media group.
|
String |
getLang()
Returns the primary language encapsulated in the media object.
|
String |
getMedium()
Returns the type of the media object.
|
Float |
getSamplingrate()
Returns the number of samples per second taken to create the media object.
|
String |
getType()
Returns the string containing the standard MIME type of the media object.
|
URI |
getURL()
Returns the direct URL to the media object.
|
String |
getURLString()
Returns the direct URL to the media object, and is required unless the media player tag is used.
|
Integer |
getWidth()
Returns the integer representing the value in pixels for the width of the media object.
|
boolean |
isDefault()
Specifies if this is the default object that should be used for the media group.
|
void |
setBitrate(Integer bitrate)
Initializes the integer representing the kilobits per second rate of media.
|
void |
setChannels(Integer channels)
Initializes the number of audio channels in the media object.
|
void |
setDefault(boolean isDefault)
Specifies if this is the default object that should be used for the media group.
|
void |
setDuration(int duration)
Initializes the integer which represents the runtime of the video in seconds.
|
void |
setDuration(Integer duration)
Initializes the integer which represents the runtime of the video in seconds.
|
void |
setExpression(String expression)
Specifies whether you're linking to a short sample of a longer video ("sample"), or if you're linking to the full thing ("full"),
or if you're linking to a live stream ("nonstop").
|
void |
setFileSize(Long fileSize)
Initializes the long integer representing the number of bytes of the media object.
|
void |
setFramerate(Integer framerate)
Initializes the integer that specifies the number of frames per second of the media object.
|
void |
setHeight(Integer height)
Initializes the integer representing the value in pixels for the height of the media object.
|
void |
setIsDefault(Boolean isDefault)
Specifies if this is the default object that should be used for the media group.
|
void |
setLang(String lang)
Initializes the primary language encapsulated in the media object.
|
void |
setMedium(String medium)
Initializes the type of the media object.
|
void |
setSamplingrate(Float samplingrate)
Initializes the number of samples per second taken to create the media object.
|
void |
setType(String type)
Initializes the string containing the standard MIME type of the media object.
|
void |
setURL(URI url)
Initializes the direct URL to the media object.
|
void |
setURLString(String url)
Initializes the direct URL to the media object.
|
void |
setWidth(Integer width)
Initializes the integer representing the value in pixels for the width of the media object.
|
addMediaCategory, addMediaCredit, addMediaHash, addMediaRating, addMediaRestriction, addMediaText, addMediaThumbnail, getMediaAdult, getMediaCategories, getMediaCopyright, getMediaCredits, getMediaDescription, getMediaHashes, getMediaKeywords, getMediaPlayer, getMediaRatings, getMediaRestrictions, getMediaTexts, getMediaThumbnails, getMediaTitle, isMediaAdult, setMediaAdult, setMediaAdult, setMediaCopyright, setMediaDescription, setMediaKeywords, setMediaPlayer, setMediaTitlepublic void setURLString(String url) throws URISyntaxException
url - an URL as a string. Shall not be null.NullPointerException - if url is null.URISyntaxException - if the given string violates RFC 2396, as augmented by the URI deviations.getURLString(),
setURL(java.net.URI)public String getURLString()
rtsp://www.hosthame.com/video.rm".null.setURLString(java.lang.String),
getURL()public void setURL(URI url)
url - an URL. May be null.getURL(),
setURLString(java.lang.String)public URI getURL()
null.setURL(java.net.URI),
getURLString()public void setDuration(int duration)
duration - a duration.getDuration(),
setDuration(Integer)public void setDuration(Integer duration)
duration - a duration. May be null.getDuration(),
setDuration(int)public Integer getDuration()
null.setDuration(int)public void setBitrate(Integer bitrate)
bitrate - a bitrate. May be null.getBitrate()public Integer getBitrate()
null.setBitrate(java.lang.Integer)public void setFramerate(Integer framerate)
framerate - a frame rate. May be null.getFramerate()public Integer getFramerate()
null.setFramerate(java.lang.Integer)public void setSamplingrate(Float samplingrate)
samplingrate - a sampling rate. May be null.getSamplingrate()public Float getSamplingrate()
null.setSamplingrate(java.lang.Float)public void setWidth(Integer width)
width - a width. May be null.getWidth()public Integer getWidth()
null.setWidth(java.lang.Integer)public void setHeight(Integer height)
height - a height. May be null.getHeight()public Integer getHeight()
null.setHeight(java.lang.Integer)public void setChannels(Integer channels)
channels - a number of audio channels. May be null.getChannels()public Integer getChannels()
null.setChannels(java.lang.Integer)public void setFileSize(Long fileSize)
fileSize - a file size. May be null.getFileSize()public Long getFileSize()
null.setFileSize(java.lang.Long)public String getType()
null.setType(java.lang.String)public void setType(String type)
type - a MIME type. May be null.getType()public String getMedium()
null.setMedium(java.lang.String)public void setMedium(String medium)
medium - a media object type. May be null.getMedium()public String getExpression()
null.setExpression(java.lang.String)public void setExpression(String expression)
expression - a media object expression. May be null.getExpression()public String getLang()
null.setLang(java.lang.String)public void setLang(String lang)
lang - a language code. May be null.getLang()public boolean isDefault()
setDefault(boolean),
getIsDefault()public void setDefault(boolean isDefault)
isDefault - the associated indicator.isDefault(),
setIsDefault(java.lang.Boolean)public Boolean getIsDefault()
false (FIXME).null.setIsDefault(java.lang.Boolean),
isDefault()public void setIsDefault(Boolean isDefault)
isDefault - the associated indicator. May be null.getIsDefault(),
setDefault(boolean)Copyright © 2008–2017. All rights reserved.