here's what I've done so far – work in progress...
it's a plugin (plugin.jwplayer.php) in ndxzsite/plugin
<?php
/**
* jwplayer plugin
*
*
* @version 1.0
* @author Nils
*/
function jwplayer($filename)
{
$out = ($wrap == 'inline') ? : " n";
$out .= " n";
$out .= " n";
$out .= "$(document).ready(function($) { n";
$out .= " var w_height = $(window).height(); n";
$out .= " var w_width = $(window).width(); n";
$out .= " jwplayer('video').setup({ n";
$out .= " flashplayer: '" . BASEURL . "/files/videos/player.swf', n";
$out .= " file: '" . BASEURL . "/files/videos/$filename', n";
$out .= " bufferlength: '3', n";
$out .= " autostart: 'true', n";
$out .= " icons: 'false', n";
$out .= " repeat: 'always', n";
$out .= " controlbar: 'none', n";
$out .= " height: w_height, n";
$out .= " width: w_width, n";
$out .= " stretching: 'fill', n";
$out .= " modes: [ n";
$out .= " {type: 'html5'}, n";
$out .= " {type: 'flash', src: '" . BASEURL . "/files/videos/player.swf'}, n";
$out .= " {type: 'download'} n";
$out .= " ], n";
$out .= " }); n";
$out .= " $(window).resize(function(e) { n";
$out .= " var new_w_height = $(window).height(); n";
$out .= " var new_w_width = $(window).width(); n";
$out .= " jwplayer('video').resize(new_w_width, new_w_height); n";
$out .= " }); n";
$out .= "}); n";
$out .= " n";
return $out;
}
I call it just with
there have to be a "video" folder with the movie (mp4) within the files folder
that's it so far