Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedSo 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.Comment #2
levelos CreditAttribution: levelos commentedThat does the trick, thanks Stuart.