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.
TODO(user): support asynchronous data models by subclassing
goog.events.EventTarget
or goog.ds.DataNode
. Understand why
http://goto/datanode
is not available in closure. Add setters to
MediaModel once this is supported.
goog.ui.media.MediaModel |
Many (5) | goog.ui.media.MediaModel |
opt_url
: string=
An optional URL of the media.
|
opt_caption
: string=
An optional caption of the media.
|
opt_description
: string=
An optional description of the media.
|
opt_type
: goog.ui.media.MediaModel.MimeType=
The type of the media.
|
opt_medium
: goog.ui.media.MediaModel.Medium=
The medium of the media.
|
opt_duration
: number=
The duration of the media in seconds.
|
opt_width
: number=
The width of the media in pixels.
|
opt_height
: number=
The height of the media in pixels.
|
Finds the first category with the given scheme.
Arguments:
Returns: goog.ui.media.MediaModel.Category
The category that has the
given scheme. May be null.
|
code » | ||
Finds all credits with the given role.
Arguments:
Returns: !Array.<!goog.ui.media.MediaModel.Credit>
An array of credits
with the given role. May be empty.
|
code » | ||
Gets the caption of this media.
|
code » | ||
Gets the categories of the media.
Returns: Array.<goog.ui.media.MediaModel.Category>
The categories of the
media.
|
code » | ||
Gets the credits of the media.
|
code » | ||
Gets the description of this media.
|
code » | ||
Gets the duration of the media.
|
code » | ||
Gets the height of the media in pixels.
|
code » | ||
![]()
Gets the media medium.
Returns: goog.ui.media.MediaModel.Medium | undefined
The media medium.
|
code » | ||
Gets the player data.
|
code » | ||
Gets the subtitles for the media.
Returns: Array.<goog.ui.media.MediaModel.SubTitle>
The subtitles.
|
code » | ||
Gets the thumbnail urls.
Returns: Array.<goog.ui.media.MediaModel.Thumbnail>
The list of thumbnails.
|
code » | ||
![]()
Gets the media mime type.
Returns: goog.ui.media.MediaModel.MimeType | undefined
The media mime type.
|
code » | ||
Gets the URL of this media.
|
code » | ||
Gets the width of the media in pixels.
|
code » | ||
Sets the caption of this media.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the categories of the media
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the credits of the media
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the description of this media.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets duration of the media.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the height of the media.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the media medium.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the player data.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the subtitles for the media
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself.
|
code » | ||
Sets the thumbnail list.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the media mime type.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the URL of this media.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » | ||
Sets the width of the media.
Arguments:
Returns: !goog.ui.media.MediaModel
The object itself, used for chaining.
|
code » |
![]()
The caption of the media.
|
Code » | |
![]()
The list of categories that are applied to this media.
|
Code » | |
![]()
The list of credits that pertain to this media object.
|
Code » | |
![]()
A description of the media, typically user generated comments about it.
|
Code » | |
![]()
The duration of the media in seconds.
|
Code » | |
![]()
The height of the media in pixels.
|
Code » | |
![]()
The medium of the media.
|
Code » | |
The media player.
|
Code » | |
![]()
The list of subtitles for the media object.
|
Code » | |
![]()
A list of thumbnails representations of the media (eg different sizes of
the same photo, etc).
|
Code » | |
![]()
The mime type of the media.
|
Code » | |
![]()
The URL of the media.
|
Code » | |
![]()
The width of the media in pixels.
|
Code » |
![]()
Supported mediums, found here:
http://video.search.yahoo.com/mrss
Constants:
|
Code » | |||||||
![]()
The supported media mime types, a subset of the media types found here:
http://www.iana.org/assignments/media-types/ and here
http://en.wikipedia.org/wiki/Internet_media_type
Constants:
|
Code » |