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

Procedural File: jplayer.php

Source Location: /zp-extensions/jplayer.php

Page Details

Support for the jPlayer jQuery/Flash 2.0.0 multimedia player (jplayer.org). It will play natively via HTML5 in capable browser if the appropiate multimedia formats are provided. This is not an adaption of the existing 3rd party plugin zenjPlayer but a full featured plugin.

Audio: .mp3, .m4a, .fla - Counterpart formats .oga (use .ogg as a suffix!) and webma supported (see note below!) Video: .m4v/.mp4, .flv - Counterpart formats .ogv and .webmv supported (see note below!)

IMPORTANT NOTE ON OGG AND WEBM COUNTERPART FORMATS: The counterpart formats are not valid formats for Zenphoto itself as that would confuse the management. Therefore these formats can be uploaded via ftp only. The files needed to have the same file name (beware the character case!). In single player usage the player will check via file system if a counterpart file exists if counterpart support is enabled. NOTE: Counterpart format does not work correctly on playlists yet. Detailed reason: Priority solution setting must be "flash" as otherwise flv and fla will not work on some browsers like Safari. This in return disables counterpart support for ogg and webm files for some reason on Firefox). Since the flash fallback covers all essential formats ths is not much of an issue for visitors though.

Otherwise it will not work. It is all or none. See http://jplayer.org/latest/developer-guide/#reference-html5-media for info on that.

NOTE ON PLAYER SKINS: The look of the player is determined by a pure HTML/CSS based skin (theme). There may occur display issues with themes. Only the Zenphoto own default skin "zenphotolight" has been tested with the standard themes (and not even with all it works perfectly). So you might need to adjust the skin yourself to work with your theme. It is recommended that you place your custom skins within the root /plugins folder like: plugins/jplayer/skin/<skin name1> plugins/jplayer/skin/<skin name2> ... You can select the skin then via the plugin options. NOTE: A skin may have only one CSS file.

USING PLAYLISTS: You can use $_zp_flash_player->printjPlayerPlaylist() on your theme's album.php directly to display a video/audio playlist (default) or an audio only playlist. Alternativly you can show a playlist of a specific album anywhere. In any case you need to modify your theme. See the documentation for the parameter options.

NOTE: This player does not support external albums!

Author:  Malte Müller (acrylian)
Classes
Class Description
jplayer_options
jplayer
Functions
getjPlayerSkinCSS  [line 157]

Gets the css files for a skin. Helper function for getjPlayerSkins().

Parameters:
   $skins: 
   $dir: 


void getjPlayerSkinCSS( $skins, $dir  )

[ Top ]
getjPlayerSkins  [line 137]

Gets the skin names and css files


void getjPlayerSkins( )

[ Top ]
jplayerJS  [line 56]

void jplayerJS( )

[ Top ]
jplayer_playlistJS  [line 69]

void jplayer_playlistJS( )

[ Top ]
printjPlayerPlaylist  [line 748]
Parameters:
   $option: 
   $albumfolder: 


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

[ Top ]


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