You are here

function flowplayer3_flowplayer3_mediaplayer_swftools_playlist in SWF Tools 6.2

Implementation of hook_{player}_swftools_playlist(). This function builds the content needed to write to an xml playlist. In the case of FlowPlayer3 it is not actually necessary to produce an xml playlist, but we must support this hook as SWF Tools uses its presence to detect that the player is capable of supporting playlists. DO WE NEED TO DO THIS? IF THE PLAYER DOESN'T SUPPORT LIST ACTIONS THEN WE ALREADY KNOW THIS?

Parameters

$xml_data: Array of data that can be used to build the xml playlist. Contains keys [header][title] Title data that can be used for the playlist [playlist][key][filepath] The filepath to the file [playlist][key][filename] The filename of the file [playlist][key][fileurl] The url of the file [playlist][key][title] The title of the file [action] The action to be performed by this playlist (e.g. SWFTOOLS_MP3_DISPLAY_LIST)

$method: Object containing two keys - player and method. Each consists of an array that defines the details of the resolved player and embedding method that is being used for this file.

$vars: Object containing three keys - othervars, flashvars and params. These are arrays containing key/value pairs that contain all the data assigned to this file so far. THE ARRAY othervars CONTAINS A KEY playlist_data THAT APPEARS TO REPEAT THE CONTENTS OF xml_data. IS IT NECESSARY TO PASS BOTH?

Return value

String of text that be written to the xml file defining the playlist.

File

flowplayer3/flowplayer3.module, line 261

Code

function flowplayer3_flowplayer3_mediaplayer_swftools_playlist($xml_data, &$method, &$vars) {

  // For FlowPlayer3 return nothing and let the handler create an empty xml file
  return;
}