ui.media

Classes

goog.ui.media.FlashObject
A very simple flash wrapper, that allows you to create flash object programmatically, instead of embedding your own HTML. It extends goog.ui.Component, which makes it very easy to be embedded on the page.
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.
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.
goog.ui.media.Media
Provides the control mechanism of media types.
goog.ui.media.MediaModel
An base data value class for all media data models. MediaModels are exact matches to the fields defined in the Yahoo RSS media specification http://search.yahoo.com/mrss/. The current common data shared by medias is to have URLs, mime types, captions, descriptions, thumbnails and players. Some of these may not be available, or applications may not want to render them, so null values are allowed. goog.ui.media.MediaRenderer checks whether the values are available before creating DOMs for them. TODO(user): support asynchronous data models by subclassing goog.events.EventTarget or goog.ds.DataNode. Understand why http://goto/datanode is not available in closure. Add setters to MediaModel once this is supported.
goog.ui.media.MediaRenderer
Base class of all media renderers. Provides the common renderer functionality of medias. The current common functionality shared by Medias is to have an outer frame that gets highlighted on mouse hover. TODO(user): implement more common UI behavior, as needed. NOTE(user): I am not enjoying how the subclasses are changing their state through setState() ... maybe provide abstract methods like goog.ui.media.MediaRenderer.prototype.preview = goog.abstractMethod; goog.ui.media.MediaRenderer.prototype.play = goog.abstractMethod; goog.ui.media.MediaRenderer.prototype.minimize = goog.abstractMethod; goog.ui.media.MediaRenderer.prototype.maximize = goog.abstractMethod; and call them on this parent class setState ?
goog.ui.media.Mp3
Subclasses a goog.ui.media.MediaRenderer to provide a Mp3 specific media renderer. This class knows how to parse mp3 URLs, and render the DOM structure of mp3 flash 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 checked, mp3 URL , which is the data model this renderer will use to construct the DOM structure. for an 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.Photo
Subclasses a goog.ui.media.MediaRenderer to provide a Photo specific media renderer. Provides a base class for any other renderer that wants to display photos. This class is meant to be used as a singleton static stateless class, that takes goog.ui.media.Media instances and renders it. This design is patterned after http://go/closure_control_subclassing
goog.ui.media.PicasaAlbum
Subclasses a goog.ui.media.MediaRenderer to provide a Picasa specific media renderer. This class knows how to parse picasa URLs, and render the DOM structure of picasa album players and previews. 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, object with a user and album fields , 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.PicasaAlbum currently displays a picasa-made flash slideshow with the photos, but could possibly display a handwritten js photo viewer, in case flash is not available. This design is patterned after http://go/closure_control_subclassing It uses goog.ui.media.FlashObject to embed the flash object.
goog.ui.media.PicasaAlbumModel
The goog.ui.media.PicasaAlbum media data model. It stores a required userId and albumId fields, sets the picasa album URL, and allows a few optional parameters.
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.
goog.ui.media.Youtube
Subclasses a goog.ui.media.MediaRenderer to provide a Youtube specific media renderer. This class knows how to parse youtube urls, and render the DOM structure of youtube video players and previews. 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, 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 , with a thumbnail of the video. On SELECTED, the renderer will append to the DOM a flash object, that contains the youtube video. This design is patterned after http://go/closure_control_subclassing It uses goog.ui.media.FlashObject to embed the flash object.
goog.ui.media.YoutubeModel
The goog.ui.media.Youtube media data model. It stores a required videoId field, sets the youtube URL, and allows a few optional parameters.

Package ui

Package Reference