You are here

function swf_list in SWF Tools 6

Same name and namespace in other branches
  1. 5 swftools.module \swf_list()
  2. 6.2 swftools.module \swf_list()

Output a playlist via a flash file. Note that $playlist_data has a specific format that will be documented later.

Parameters

$playlist_data:

Not the name of an xml file!

1 call to swf_list()
_swftools_filter_process_text in ./swftools.module

File

./swftools.module, line 118

Code

function swf_list($playlist_data, $options = array()) {

  // For now turn array back in to strings to avoid re-writing rest of code
  $params = $options['params'];
  $flashvars = $options['flashvars'];
  $othervars = $options['othervars'];
  $methods = $options['methods'];
  if (is_array($playlist_data)) {
    if (!$methods) {
      $methods = array();
    }
    $methods['action'] = $playlist_data['action'];
    if (!$othervars) {
      $othervars = array();
    }
    $othervars['playlist_data'] = $playlist_data;
    if (isset($playlist_data['filename'])) {
      $playlist = $playlist_data['filename'];
    }
    else {
      $playlist = '';
    }

    // Put possibly modified items back in to options array
    $options['methods'] = $methods;
    $options['othervars'] = $othervars;

    //return swf($playlist, $params, $flashvars, $othervars, $methods);
    return swf($playlist, $options);
  }
  else {

    // Need to verify the direct xml file method before permitting it.
  }
}