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);
| Comment | File | Size | Author |
|---|---|---|---|
| swfobject_api.module.patch | 1.34 KB | sunandair |
Comments
Comment #1
arthurf commentedVersion 5--1-2 now supports this along with a few other improvements
Comment #2
(not verified) commented