flickr.js
No description.

File Location

/goog/ui/media/flickr.js

Classes

goog.ui.media.FlickrSet
Subclasses a goog.ui.media.MediaRenderer to provide a FlickrSet specific media renderer. This class knows how to parse FlickrSet URLs, and render the DOM structure of flickr set 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, set 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.FlickrSetModel
The goog.ui.media.FlickrAlbum media data model. It stores a required userId and setId fields, sets the flickr Set URL, and allows a few optional parameters.

Public Protected Private

Global Functions

goog.ui.media.FlickrSetModel.buildUrl(userIdsetId) string
Takes a flickr username and set id and returns an URL.
Arguments:
userId : string
The owner of the set.
setId : string
The set id.
Returns: string  The URL of the set.
code »
goog.ui.media.FlickrSet.getInstance()
No description.
code »
goog.ui.media.FlickrSet.newControl(dataModelopt_domHelper) !goog.ui.media.Media
A static convenient method to construct a goog.ui.media.Media control out of a FlickrSet URL. It extracts the set id information on the URL, sets it as the data model goog.ui.media.FlickrSet 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 FlickrSet videos, except if you need more fine control over the configuration.
Arguments:
dataModel : goog.ui.media.FlickrSetModel
The Flickr Set data model.
opt_domHelper : goog.dom.DomHelper=
Optional DOM helper, used for document interaction.
Returns: !goog.ui.media.Media  A Control binded to the FlickrSet renderer.
code »
goog.ui.media.FlickrSetModel.newInstance(flickrSetUrlopt_captionopt_description) !goog.ui.media.FlickrSetModel
Takes a flickrSetUrl and extracts the flickr username and set id.
Arguments:
flickrSetUrl : string
A Flickr set URL.
opt_caption : string=
An optional caption of the flickr set.
opt_description : string=
An optional description of the flickr set.
Returns: !goog.ui.media.FlickrSetModel  The data model that represents the Flickr set.
code »
goog.ui.media.FlickrSet.setFlashUrl(flashUrl)
A static method that sets which flash URL this class should use. Use this if you want to host your own flash flickr player.
Arguments:
flashUrl : string
The URL of the flash flickr player.
code »

Directory media

File Reference