googlevideo.js
No description.

File Location

/goog/ui/media/googlevideo.js

Classes

goog.ui.media.GoogleVideo
Subclasses a goog.ui.media.MediaRenderer to provide a GoogleVideo specific media renderer. This class knows how to parse GoogleVideo URLs, and render the DOM structure of GoogleVideo video players. This class is meant to be used as a singleton static stateless class, that takes goog.ui.media.Media instances and renders it. It expects goog.ui.media.Media.getModel to return a well formed, previously constructed, GoogleVideo 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. This design is patterned after http://go/closure_control_subclassing It uses goog.ui.media.FlashObject to embed the flash object.
goog.ui.media.GoogleVideoModel
The goog.ui.media.GoogleVideo media data model. It stores a required videoId field, sets the GoogleVideo URL, and allows a few optional parameters.

Public Protected Private

Global Functions

goog.ui.media.GoogleVideoModel.buildFlashUrl(videoIdopt_autoplay) string
An auxiliary method that builds URL of the flash movie to be embedded, out of the GoogleVideo video id.
Arguments:
videoId : string
The GoogleVideo video ID.
opt_autoplay : boolean=
Whether the flash movie should start playing as soon as it is shown, or if it should show a 'play' button.
Returns: string  The flash URL to be embedded on the page.
code »
goog.ui.media.GoogleVideoModel.buildUrl(videoId) string
The opposite of goog.ui.media.GoogleVideo.newInstance: it takes a videoId and returns a GoogleVideo URL.
Arguments:
videoId : string
The GoogleVideo video ID.
Returns: string  The GoogleVideo URL.
code »
goog.ui.media.GoogleVideo.getInstance()
No description.
code »
goog.ui.media.GoogleVideo.newControl(dataModelopt_domHelper) !goog.ui.media.Media
A static convenient method to construct a goog.ui.media.Media control out of a GoogleVideo model. It sets it as the data model goog.ui.media.GoogleVideo 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 GoogleVideo videos, except if you need finer control over the configuration.
Arguments:
dataModel : goog.ui.media.GoogleVideoModel
The GoogleVideo data model.
opt_domHelper : goog.dom.DomHelper=
Optional DOM helper, used for document interaction.
Returns: !goog.ui.media.Media  A Control binded to the GoogleVideo renderer.
code »
goog.ui.media.GoogleVideoModel.newInstance(googleVideoUrlopt_captionopt_descriptionopt_autoplay) !goog.ui.media.GoogleVideoModel
A auxiliary static method that parses a GoogleVideo URL, extracting the ID of the video, and builds a GoogleVideoModel.
Arguments:
googleVideoUrl : string
A GoogleVideo video URL.
opt_caption : string=
An optional caption of the GoogleVideo video.
opt_description : string=
An optional description of the GoogleVideo video.
opt_autoplay : boolean=
Whether to autoplay video.
Returns: !goog.ui.media.GoogleVideoModel  The data model that represents the GoogleVideo URL.
code »

Directory media

File Reference