static void getMacrojplayer(
$albumname,
$imagename, [
$count = 1]
)
|
|
Parameters:
|
$albumname: |
|
|
$imagename: |
|
|
$count: |
|
static void macro(
$macros
)
|
|
Parameters:
static void playlistJS(
)
|
|
void getCounterpartFiles(
string
$moviepath, string
$ext
)
|
|
TODO: Could not get this to work with Firefox. Low priority so postponed for sometime later...
Gets the mp3, m4v,m4a,mp4 counterpart formats (webm,ogg) for html5 browser compatibilty NOTE: THese formats need to be uploaded via FTP as they are not valid file types for Zenphoto to avoid confusion
Parameters:
string |
$moviepath: |
full link to the multimedia file to get counterpart formats to. |
string |
$ext: |
the file format extention to search the counterpart for (as we already have fetched that) |
int getHeight(
[object
$image = NULL]
)
|
|
Returns the height of the player
Parameters:
object |
$image: |
the image for which the height is requested |
void getPlayerConfig(
mixed
$movie, [string
$movietitle = NULL], [string
$count = NULL], string
$width, string
$height
)
|
|
Get the JS configuration of jplayer
Parameters:
mixed |
$movie: |
the image object |
string |
$movietitle: |
the title of the movie |
string |
$count: |
number (preferredly the id) of the item to append to the css for multiple players on one page |
string |
$width: |
Not supported as jPlayer is dependend on its CSS based skin to change sizes. Can only be set via plugin options. |
string |
$height: |
Not supported as jPlayer is dependend on its CSS based skin to change sizes. Can only be set via plugin options. |
void getPlayerHTMLparts(
[string
$mode = ''], [string
$part = '']
)
|
|
gets commonly used html parts for the player config
Parameters:
string |
$mode: |
'video' or 'audio' |
string |
$part: |
part to get: 'controls', 'controls-playlist', 'toggles', 'toggles-playlist','no-solution' |
int getWidth(
[object
$image = NULL]
)
|
|
Returns the width of the player
Parameters:
object |
$image: |
the image for which the width is requested |
void printjPlayerPlaylist(
[string
$option = "playlist"], [string
$albumfolder = ""]
)
|
|
Prints a playlist using jPlayer. Several playlists per page supported.
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 printjPlayerPlaylist("playlist"); ?> or <?php printjPlayerPlaylist("playlist-audio"); ?>
Parameters:
string |
$option: |
"playlist" use for pure video and mixed video/audio playlists or if you want to show the poster/videothumb with audio only playlists, "playlist-audio" use for pure audio playlists (m4a,mp3,fla supported only) if you don't need the poster/videothumb to be shown only. |
string |
$albumfolder: |
album name to get a playlist from directly |
void printPlayerConfig(
[mixed
$movie = NULL], [string
$movietitle = NULL], [string
$count = NULL]
)
|
|
outputs the player configuration HTML
Parameters:
mixed |
$movie: |
the image object if empty (within albums) the current image is used |
string |
$movietitle: |
the title of the movie. if empty the Image Title is used |
string |
$count: |
unique text for when there are multiple player items on a page |
void setModeAndSuppliedFormat(
$ext
)
|
|
Sets the properties $mode, $supplied and $supplied_counterparts
Parameters: