[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: flowplayer3_playlist.php

Source Location: /zp-extensions/flowplayer3_playlist.php

Page Details

flowplayer3 playlist - Show the content of an media album with .flv/.mp4/.mp3 movie/audio files only as a playlist or as separate players with Flowplayer 3 IMPORTANT: The Flowplayer 3 plugin needs to be activated to use this plugin.

Note that this does not work with pure image albums and is not meant to!

See usage details below

NOTE: Flash players do not support external albums!

Author:  Malte Müller (acrylian), Stephen Billard (sbillard)
Classes
Class Description
flowplayer3_playlist Plugin option handling class
Functions
flowplayerPlaylist  [line 115]

Show the content of an media album with .flv/.mp4/.mp3 movie/audio files only as a playlist or as separate players with Flowplayer 3 Important: The Flowplayer 3 plugin needs to be activated to use this plugin. This plugin shares all settings with this plugin, too.

You can either show a 'one player window' playlist or show all items as separate players paginated. See the examples below. (set in the settings for thumbs per page) on one page (like on a audio or podcast blog).

There are two usage modes:

a) 'playlist' The playlist is meant to replace the 'next_image()' loop on a theme's album.php. It can be used with a special 'album theme' that can be assigned to media albums with with .flv/.mp4/.mp3s, although Flowplayer 3 also supports images Replace the entire 'next_image()' loop on album.php with this: <?php flowplayerPlaylist("playlist"); ?>

This produces the following html: <div class="wrapper"> <a class="up" title="Up"></a> <div class="playlist"> <div class="clips"> <!-- single playlist entry as an "template" --> <a href="${url}">${title}</a> </div> </div> <a class="down" title="Down"></a> </div> </div> This is styled by the css file 'playlist.css" that is located within the 'zp-core/plugins/flowplayer3_playlist/flowplayer3_playlist.css' by default. Alternatively you can style it specifically for your theme. Just place a css file named "flowplayer3_playlist.css" in your theme's folder.

b) 'players' This displays each audio/movie file as a separate player on album.php. If there is no videothumb image for an mp3 file existing only the player control bar is shown. Modify the 'next_image()' loop on album.php like this: <?php while (next_image(false,$firstPageImages)): flowplayerPlaylist("players"); endwhile; ?> Of course you can add further functions to b) like printImageTitle() etc., too.

Parameters:
string   $option:  The mode to use "playlist" or "players"
string   $albumfolder:  For "playlist" mode only: To show a playlist of an specific album directly on another page (for example on index.php). Note: Currently it is not possible to have several playlists on one page


void flowplayerPlaylist( [string $option = &quot;playlist&quot;], [string $albumfolder = &quot;&quot;]  )

[ Top ]


Documentation generated on Mon, 09 Aug 2010 17:23:58 +0200 by phpDocumentor 1.4.1