API Docs for: 0.8.0
Show:

BaseMediaRenderer Class

Provides functions to provide common functionality among media renderers

Constructor

Item Index

Methods

getAttributeStr

() String static

Generates an attribute string from a hash of key/value pairs

Returns:

String:

getEmbedUrl

(
  • mediaId
)
String static

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 String

    The 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