goog.ui.media.Media
instances and renders it. It expects goog.ui.media.Media.getModel
to
return a well formed, previously constructed, youtube video id, which is the
data model this renderer will use to construct the DOM structure.
for a example of constructing a
control with this renderer.
goog.ui.media.Youtube currently supports all goog.ui.Component.State
.
It will change its DOM structure between SELECTED and !SELECTED, and rely on
CSS definitions on the others. On !SELECTED, the renderer will render a
youtube static goog.ui.media.FlashObject
to embed the flash object.
goog.ui.media.Youtube
media data model. It stores a required
videoId
field, sets the youtube URL, and allows a few optional
parameters.
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 » | ||||
![]()
No description.
|
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 static convenient method to construct a goog.ui.media.Media control out of
a youtube model. It sets it as the data model goog.ui.media.Youtube renderer
uses, sets the states supported by the renderer, and returns a Control that
binds everything together. This is what you should be using for constructing
Youtube videos, except if you need finer control over the configuration.
Arguments:
Returns: !goog.ui.media.Media
A Control binded to the youtube renderer.
|
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 » |