Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Flowplayer

Summary: Flowplayer recipe
Version: 1.0
Prerequisites: Flash Plugin installed, Flowplayer's swf (included in the file attached)
Status: Beta
Categories: Media, Markup

Purpose

The purpose of this recipe is to allow the inclusion of the flowplayer flash video player into a pmwiki page.

Description

This recipe provides a customizable block to generate the code needed for embedding the flowplayer swf file.

Installation

Download and extract the archive as shown below:

pmwiki/
cookbook/
flowplayer.php
flowplayer/
.htaccess
addloadevent.js
flashembed.min.js
FlowPlayerClassic.swf
FlowPlayerDark.swf
FlowPlayerLight.swf
FlowPlayerLP.swf

Then, add the following to local/config.php

include_once("cookbook/flowplayer.php");

Usage

To reproduce a video on your pages add a the following directive:

(:flowplayer <options> :)

The script supports all configuration options available to flowplayer, save those related to playlists (soon or later I will implement them, right now I don't need to). Have a look at flowplayer documentation for information on their usage.

e.g. (:flowplayer width=400 height=300 src=Dark videoFile=http://www.example.org/path/to/file.flv autoPlay=false :)

Demo

http://www.terranovanet.it/Cookbook/Flowplayer

Release Notes

Version 1.0: first working version, works well on IE and Firefox

See Also

Contributors

Gianpaolo Terranova

Comments

The path is wrong in flowplayer.php file. Below worked for me:

Original:

SDV($FPObjBaseUrl, $ScriptUrl."/wiki/cookbook/flowplayer/");
SDV($FPJsUrl, $ScriptUrl."/wiki/cookbook/flowplayer/flashembed.min.js");
SDV($HelperJsUrl, $ScriptUrl."/wiki/cookbook/flowplayer/addloadevent.js");

Changed to:

SDV($FPObjBaseUrl, "./cookbook/flowplayer/");
SDV($FPJsUrl, "./cookbook/flowplayer/flashembed.min.js");
SDV($HelperJsUrl, "./cookbook/flowplayer/addloadevent.js");

Also changed in config.php file:

Original:

'include_once("cookbook/flowplayer.php");'

Changed to:

'include_once("$FarmD/cookbook/flowplayer.php");'



If you want the embedded media
to be playable on your local copy of pmwiki,
you could try a relative path.

Examples:

The following doesn't work, on my local copy,
but it works on my internet wiki...
(:flowplayer videoFile=/main/uploads/Main/some_video.flv :)

This works, both, on my local pmwiki
and on my internet wiki...
(:flowplayer videoFile=../../uploads/Main/some_video.flv :)

Adjust as needed...
nikos?



User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on December 10, 2011, at 04:34 AM