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

Procedural File: flowplayer3.php

Source Location: /zp-extensions/flowplayer3.php

Page Details

Support for the flowplayer 3.x.x flash video player. Now incorporates the former separate flowplayer3_playlist plugin.

NOTE: Flash players do not support external albums!

Note on splash images: Flowplayer will try to use the first frame of a movie as a splash image or a videothumb if existing.

The playlist part of the plugin supports custom CSS styling. You may override the default by placing a CSS file your theme folder: flowplayer3_playlist.css or alternativels within the user plugins folder /flowplayer3/flowplayer3_playlist.css This will allow you to customize the appearance of the comments on your site.

Author:  Malte Müller (acrylian)
Classes
Class Description
flowplayer3_options Plugin option handling class
flowplayer3
Constants
FLOW_PLAYER_MP3_HEIGHT  [line 60]

FLOW_PLAYER_MP3_HEIGHT = 26

[ Top ]


Functions
flowplayerJS  [line 32]

void flowplayerJS( )

[ Top ]
flowplayerPlaylist  [line 389]

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()): flowplayerPlaylist("players"); endwhile; ?> Of course you can add further functions to b) like printImageTitle() etc., too.

Parameters:
string   $option:  The mode to use "players", "playlist" or "playlist-mp3". "playlist-mp3" is the same as "playlist" except that only the controlbar is shown (if you are too lazy for custom video thumbs and don't like the empty screen)
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 ]
flowplayer_playlistJS  [line 46]

void flowplayer_playlistJS( )

[ Top ]


Documentation generated on Tue, 20 Dec 2011 16:07:13 +0100 by phpDocumentor 1.4.3