It would be good to have the API supporting FlashVars. Attached is a patch for your review. Note that I changed the quotes because with singles quotes as values in the FlashVars, I was getting JavaScript errors.

With this addition I can use the FlowPlayer required for the Video module in a node, but with your SWFObject goodness:

$url = "/files/flowplayer/FlowPlayer.swf"; //path to flash file
$params = array('width' => 320, 'height' => 264);
$flashvars= array('config' => '{baseURL:\'http://www.mysite.com/videos\',videoFile:\'mysite.flv\',autoPlay:true,bufferLength:5}');
print theme("swfobject_api", $url, $params, $flashvars);
CommentFileSizeAuthor
swfobject_api.module.patch1.34 KBsunandair

Comments

arthurf’s picture

Status: Active » Fixed

Version 5--1-2 now supports this along with a few other improvements

Anonymous’s picture

Status: Fixed » Closed (fixed)