vimeo.js
No description.

File Location

/goog/ui/media/vimeo.js

Classes

goog.ui.media.Vimeo
Subclasses a goog.ui.media.MediaRenderer to provide a Vimeo specific media renderer. This class knows how to parse Vimeo URLs, and render the DOM structure of vimeo 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, vimeoId , 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.VimeoModel
The goog.ui.media.Vimeo media data model. It stores a required videoId field, sets the vimeo URL, and allows a few optional parameters.

Public Protected Private

Global Functions

goog.ui.media.VimeoModel.buildFlashUrl(videoIdopt_autoplay) string
Builds a flash url from the vimeo videoId.
Arguments:
videoId : string
The vimeo 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 vimeo flash URL.
code »
goog.ui.media.VimeoModel.buildUrl(videoId) string
The opposite of goog.ui.media.Vimeo.parseUrl: it takes a videoId and returns a vimeo URL.
Arguments:
videoId : string
The vimeo video ID.
Returns: string  The vimeo URL.
code »
goog.ui.media.Vimeo.getInstance()
No description.
code »
goog.ui.media.Vimeo.newControl(dataModelopt_domHelper) !goog.ui.media.Media
A static convenient method to construct a goog.ui.media.Media control out of a Vimeo URL. It extracts the videoId information on the URL, sets it as the data model goog.ui.media.Vimeo 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 Vimeo videos, except if you need more fine control over the configuration.
Arguments:
dataModel : goog.ui.media.VimeoModel
A vimeo video URL.
opt_domHelper : goog.dom.DomHelper=
Optional DOM helper, used for document interaction.
Returns: !goog.ui.media.Media  A Control binded to the Vimeo renderer.
code »
goog.ui.media.VimeoModel.newInstance(vimeoUrlopt_captionopt_descriptionopt_autoplay) !goog.ui.media.VimeoModel
Takes a vimeoUrl and extracts the video id.
Arguments:
vimeoUrl : string
A vimeo video URL.
opt_caption : string=
An optional caption of the vimeo video.
opt_description : string=
An optional description of the vimeo video.
opt_autoplay : boolean=
Whether to autoplay video.
Returns: !goog.ui.media.VimeoModel  The vimeo data model that represents this URL.
code »

Directory media

File Reference