search

goog.ui.media.MediaModel

Provided By
All Known Direct Subclasses

An base data value class for all media data models.

MediaModels are exact matches to the fields defined in the Yahoo RSS media specification http://search.yahoo.com/mrss/.

The current common data shared by medias is to have URLs, mime types, captions, descriptions, thumbnails and players. Some of these may not be available, or applications may not want to render them, so null values are allowed. goog.ui.media.MediaRenderer checks whether the values are available before creating DOMs for them.

new MediaModel( opt_url, opt_caption, opt_description, opt_type, opt_medium, opt_duration, opt_width, opt_height )

Parameters
opt_urlstring=

An optional URL of the media.

opt_captionstring=

An optional caption of the media.

opt_descriptionstring=

An optional description of the media.

opt_typegoog.ui.media.MediaModel.MimeType=

The type of the media.

opt_mediumgoog.ui.media.MediaModel.Medium=

The medium of the media.

opt_durationnumber=

The duration of the media in seconds.

opt_widthnumber=

The width of the media in pixels.

opt_heightnumber=

The height of the media in pixels.

Instance Methods

Classes

Enumerations