Nicolaas [at] sunnysideup.co.nz
see composer.json
see http://silverstripe-webdevelopment.com/flowplayer
-
Find out how to add modules to SS and add module as per usual.
-
Review configs and add entries to mysite/_config/config.yml (or similar) as necessary. In the _config/ folder of this module you can usually find some examples of config options (if any).
-
add <% include FlowPlayer %> to your template
-
add the following to any SiteTree class
static $has_one = array( "FlowPlayer" => "FlowPlayer" );
function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldToTab("Root.Content.Movie", new FileIFrameField("FlowPlayer", "Movie (.flv extension)")); return $fields; }
// CONFIGURATIONS
-
write your own FlowPlayerConfig variable (in javascript)
-
refer to $f("MyPlayerID") to add more actions, etc...
-
theme the FlowPlayer.ss and FlowPlayer.css file