mp3.js
No description.

File Location

/goog/ui/media/mp3.js

Classes

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.

Public Protected Private

Global Functions

goog.ui.media.Mp3.buildFlashUrl(mp3Url) string
A static method that builds a URL that will contain the flash player that will play the mp3Url.
Arguments:
mp3Url : string
The URL of the mp3 music.
Returns: string  An URL of a flash player that will know how to play the given mp3Url.
code »
goog.ui.media.Mp3.getInstance()
No description.
code »
goog.ui.media.Mp3.newControl(dataModelopt_domHelper) !goog.ui.media.Media
A static convenient method to construct a goog.ui.media.Media control out of a mp3 URL. It checks the mp3 URL, sets it as the data model goog.ui.media.Mp3 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 Mp3 videos, except if you need more fine control over the configuration.
Arguments:
dataModel : goog.ui.media.MediaModel
A media model that must contain an mp3 url on dataModel.getUrl.
opt_domHelper : goog.dom.DomHelper=
Optional DOM helper, used for document interaction.
Returns: !goog.ui.media.Media  A goog.ui.Control subclass with the mp3 renderer.
code »
goog.ui.media.Mp3.setFlashUrl(flashUrl)
A static method that sets which flash URL this class should use. Use this if you want to host your own flash mp3 player.
Arguments:
flashUrl : string
The URL of the flash mp3 player.
code »

Directory media

File Reference