The goog.ui.media Namespace

The goog.ui.media.FlashObject Class

A very simple flash wrapper, that allows you to create flash object programmatically, instead of embedding your own HTML. It extends {@link goog.ui.Component}, which makes it very easy to be embedded on the page. … more

The goog.ui.media.FlickrSet Class

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 {@code goog.ui.media.Media} instances and renders it. It expects {@code goog.ui.media.Media.getModel} to return a well formed, previously constructed, set id {@see goog.ui.media.FlickrSet.parseUrl}, which is the data model this renderer will use to construct the DOM structure. {@see goog.ui.media.FlickrSet.newControl} for a example of constructing a control with this renderer. This design is patterned after http://go/closure_control_subclassing It uses {@link goog.ui.media.FlashObject} to embed the flash object. … more

The goog.ui.media.FlickrSetModel Class

The {@code goog.ui.media.FlickrAlbum} media data model. It stores a required {@code userId} and {@code setId} fields, sets the flickr Set URL, and allows a few optional parameters. … more

The goog.ui.media.GoogleVideo Class

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 {@code goog.ui.media.Media} instances and renders it. It expects {@code 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. {@see goog.ui.media.GoogleVideo.newControl} for a example of constructing a control with this renderer. This design is patterned after http://go/closure_control_subclassing It uses {@link goog.ui.media.FlashObject} to embed the flash object. … more

The goog.ui.media.GoogleVideoModel Class

The {@code goog.ui.media.GoogleVideo} media data model. It stores a required {@code videoId} field, sets the GoogleVideo URL, and allows a few optional parameters. … more

The goog.ui.media.Media Class

Provides the control mechanism of media types. … more

The goog.ui.media.MediaModel Class

An base data value class for all media data models. MediaModels are exact matches to the fields defined in the Yahoo RSS media specification {@link 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 {@code null} values are allowed. {@code goog.ui.media.MediaRenderer} checks whether the values are available before creating DOMs for them. TODO(user): support asynchronous data models by subclassing {@link goog.events.EventTarget} or {@link goog.ds.DataNode}. Understand why {@link http://goto/datanode} is not available in closure. Add setters to MediaModel once this is supported. … more

The goog.ui.media.MediaRenderer Class

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 ? … more

The goog.ui.media.Mp3 Class

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 {@code goog.ui.media.Media} instances and renders it. It expects {@code goog.ui.media.Media.getModel} to return a well formed, previously checked, mp3 URL {@see goog.ui.media.PicasaAlbum.parseUrl}, which is the data model this renderer will use to construct the DOM structure. {@see goog.ui.media.PicasaAlbum.newControl} for an example of constructing a control with this renderer. This design is patterned after http://go/closure_control_subclassing It uses {@link goog.ui.media.FlashObject} to embed the flash object. … more

The goog.ui.media.Photo Class

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 {@code goog.ui.media.Media} instances and renders it. This design is patterned after http://go/closure_control_subclassing … more

The goog.ui.media.PicasaAlbum Class

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 {@code goog.ui.media.Media} instances and renders it. It expects {@code goog.ui.media.Media.getModel} to return a well formed, previously constructed, object with a user and album fields {@see goog.ui.media.PicasaAlbum.parseUrl}, which is the data model this renderer will use to construct the DOM structure. {@see goog.ui.media.PicasaAlbum.newControl} 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 {@link goog.ui.media.FlashObject} to embed the flash object. … more

The goog.ui.media.PicasaAlbumModel Class

The {@code goog.ui.media.PicasaAlbum} media data model. It stores a required {@code userId} and {@code albumId} fields, sets the picasa album URL, and allows a few optional parameters. … more

The goog.ui.media.Vimeo Class

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 {@code goog.ui.media.Media} instances and renders it. It expects {@code goog.ui.media.Media.getModel} to return a well formed, previously constructed, vimeoId {@see goog.ui.media.Vimeo.parseUrl}, which is the data model this renderer will use to construct the DOM structure. {@see goog.ui.media.Vimeo.newControl} for a example of constructing a control with this renderer. This design is patterned after http://go/closure_control_subclassing It uses {@link goog.ui.media.FlashObject} to embed the flash object. … more

The goog.ui.media.VimeoModel Class

The {@code goog.ui.media.Vimeo} media data model. It stores a required {@code videoId} field, sets the vimeo URL, and allows a few optional parameters. … more

The goog.ui.media.Youtube Class

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 {@code goog.ui.media.Media} instances and renders it. It expects {@code 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. {@see goog.ui.media.Youtube.newControl} for a example of constructing a control with this renderer. goog.ui.media.Youtube currently supports all {@link 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 {@link goog.ui.media.FlashObject} to embed the flash object. … more

The goog.ui.media.YoutubeModel Class

The {@code goog.ui.media.Youtube} media data model. It stores a required {@code videoId} field, sets the youtube URL, and allows a few optional parameters. … more