BaseMediaRenderer Class
Provides functions to provide common functionality among media renderers
Constructor
BaseMediaRenderer
()
Item Index
Methods
- getAttributeStr static
- getEmbedUrl static
- getStyleAttrStr static
- renderSingleElementEmbed static
- renderSingleElementEmbed static
Methods
getAttributeStr
()
String
static
Generates an attribute string from a hash of key/value pairs
Returns:
String:
getEmbedUrl
(
String
static
-
mediaId
Retrieves the source URI that will be used when generating the rendering. This base implementation prepends the configured media urlRoot value to the media URI.
Parameters:
-
mediaId
StringThe unique (only to the type) media identifier
Returns:
String:
A properly formatted URI string that points to the resource represented by the media Id
getStyleAttrStr
()
String
static
Generates a style string from a hash of key/value pairs. The string includes the 'sytle="[STUFF HERE]"' wrapper
Returns:
String:
renderSingleElementEmbed
()
String
static
Renders an iframe element
Returns:
String:
HTML
renderSingleElementEmbed
()
String
static
Renders a single element
Returns:
String:
HTML