Great new auto-close feature when there are multiple players on a page, been wanting that for a while! When I add a player to a page using the swf() call, and pass in any parameter, my players are being forced shut as they open. E.g., loop through all files for a node and call:

$audio .= swf($file[filepath],
  array('flashvars' => array('lefticon'=>'0xFFFFFF', 'righticon'=>'0xFFFFFF', 'text'=>'0xFFFFFF', 'bg' => '0xADADAD'))
);

It renders fine, but then when I play the file, it immediately closes the player and shuts off.

Comments

Stuart Greenfield’s picture

Status: Active » Needs review

So it does! The problem is the way the flashvars string is interpreted [poor code on my part - sorry!] Try the new code from branch DRUPAL-6--2 and it should be ok. All you actually need is the replacement onepixelout.js file.

levelos’s picture

That does the trick, thanks Stuart.