goog.ui.media.Youtube
media data model. It stores a required
videoId
field, sets the youtube URL, and allows a few optional
parameters.
goog.ui.media.MediaModel | |
goog.ui.media.YoutubeModel | goog.ui.media.MediaModel |
videoId
: string
The youtube video id.
|
opt_caption
: string=
An optional caption of the youtube video.
|
opt_description
: string=
An optional description of the youtube
video.
|
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 » |
The opposite of
goog.ui.media.Youtube.newInstance : it takes a videoId
and returns a youtube URL.
|
code » | ||||
A static auxiliary method that builds URL of the flash movie to be embedded,
out of the youtube video id.
|
code » | ||||
A static auxiliary method that builds a static image URL with a preview of
the youtube video.
NOTE(user): patterned after Gmail's gadgets/youtube,
TODO(user): how do I specify the width/height of the resulting image on the
url ? is there an official API for http://ytimg.com ?
|
code » | ||||
![]()
A auxiliary static method that parses a youtube URL, extracting the ID of the
video, and builds a YoutubeModel.
Arguments:
Returns: !goog.ui.media.YoutubeModel
The data model that represents the
youtube URL.
|
code » |
![]()
A youtube regular expression matcher. It matches the VIDEOID of URLs like
http://www.youtube.com/watch?v=VIDEOID. Based on:
googledata/contentonebox/opencob/specs/common/YTPublicExtractorCard.xml
|
Code » | |
![]()
No description.
|
Code » |