You are here

function scald_players in Scald: Media Management made easy 7

Get the available Scald Players.

This function returns a structured array which specifies all the currently provided Scald Players. The players are in an array with one or more elements in the format: array( 'machine-name' => array( 'name' => 'HTML5 video player', 'description' => 'A HTML5-based video player with fallback to Flash', 'types' => array('video'), ), );

Basically, a player prepares the $atom->rendered->player in hook_scald_prerender() where $mode == 'player'. That value is then used to render the atom by the context provider module.

Return value

array The Scald Players array

4 calls to scald_players()
scald_admin_contexts_form in includes/scald.admin.inc
Form for admin settings for Scald Contexts.
scald_admin_contexts_form_submit in includes/scald.admin.inc
Submit handler for Scald Contexts admin settings form.
scald_player_settings_form in includes/scald.admin.inc
Player settings form.
scald_prerender in ./scald.module
Prepare a Scald Atom for rendering.

File

./scald.module, line 259
The Scald Core, which handles all Scald Registries and dispatch.

Code

function scald_players($reset = FALSE) {
  return _scald_get_info('player', $reset);
}