org.cruxframework.crux.widgets.client.rss.feed
Class MediaContent

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.cruxframework.crux.widgets.client.rss.feed.MediaContent

public class MediaContent
extends com.google.gwt.core.client.JavaScriptObject


Constructor Summary
protected MediaContent()
           
 
Method Summary
 int getBitRate()
          Retrieve the kilobits per second rate of media.
 int getChannels()
          Retrieve the number of audio channels in the media object.
 int getDuration()
          Retrieve the number of seconds the media object plays.
 String getExpression()
          Determines if the object is a sample or the full version of the object, or even if it is a continuous stream (sample | full | nonstop).
 int getFileSize()
          Retrieve the number of bytes of the media object.
 int getFrameRate()
          Retrieve the number of frames per second for the media object.
 int getHeight()
          Retrieve is the height of the media object.
 String getLang()
          Retrieves the primary language encapsulated in the media object.
 String getMedium()
          Retrieve the type of object (image | audio | video | document | executable).
 MediaPlayer getPlayer()
          Allows the media object to be accessed through a web browser media player console.
 float getSamplingRate()
          Retrieve the number of samples per second taken to create the media object.
 com.google.gwt.core.client.JsArray<MediaThumbnail> getThumbnails()
          Allows particular images to be used as representative images for the media object.
 String getType()
          Retrieve the standard MIME type of the object.
 String getUrl()
          Retrieve the direct url to the media object.
 int getWidth()
          Retrieve the width of the media object.
 boolean isDefault()
          Determines if this is the default object that should be used for the .
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaContent

protected MediaContent()
Method Detail

getUrl

public final String getUrl()
Retrieve the direct url to the media object. If not included, a element must be specified.

Returns:

getFileSize

public final int getFileSize()
Retrieve the number of bytes of the media object. It is an optional attribute.

Returns:

getType

public final String getType()
Retrieve the standard MIME type of the object. It is an optional attribute.

Returns:

getMedium

public final String getMedium()
Retrieve the type of object (image | audio | video | document | executable). While this attribute can at times seem redundant if type is supplied, it is included because it simplifies decision making on the reader side, as well as flushes out any ambiguities between MIME type and object type. It is an optional attribute.

Returns:

isDefault

public final boolean isDefault()
Determines if this is the default object that should be used for the . There should only be one default object per . It is an optional attribute.

Returns:

getExpression

public final String getExpression()
Determines if the object is a sample or the full version of the object, or even if it is a continuous stream (sample | full | nonstop). Default value is 'full'. It is an optional attribute.

Returns:

getBitRate

public final int getBitRate()
Retrieve the kilobits per second rate of media. It is an optional attribute.

Returns:

getFrameRate

public final int getFrameRate()
Retrieve the number of frames per second for the media object. It is an optional attribute.

Returns:

getSamplingRate

public final float getSamplingRate()
Retrieve the number of samples per second taken to create the media object. It is expressed in thousands of samples per second (kHz). It is an optional attribute.

Returns:

getChannels

public final int getChannels()
Retrieve the number of audio channels in the media object. It is an optional attribute.

Returns:

getDuration

public final int getDuration()
Retrieve the number of seconds the media object plays. It is an optional attribute.

Returns:

getHeight

public final int getHeight()
Retrieve is the height of the media object. It is an optional attribute.

Returns:

getWidth

public final int getWidth()
Retrieve the width of the media object. It is an optional attribute.

Returns:

getLang

public final String getLang()
Retrieves the primary language encapsulated in the media object. Language codes possible are detailed in RFC 3066. This attribute is used similar to the xml:lang attribute detailed in the XML 1.0 Specification (Third Edition). It is an optional attribute.

Returns:

getThumbnails

public final com.google.gwt.core.client.JsArray<MediaThumbnail> getThumbnails()
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.

Returns:

getPlayer

public final MediaPlayer getPlayer()
Allows the media object to be accessed through a web browser media player console. This element is required only if a direct media url attribute is not specified in the element.

Returns:


Copyright © 2014. All rights reserved.