I want to disable the embed and email menuitems on flowplayer, but cannot get the 'menuitems' parameter working - I've tried
print swf($value->filepath, array('params' => array('menuItems'=>"[1, 1, 1, 1, 1, 0, 0]")));
print swf($value->filepath, array('params' => array('menuItems'=>"[true, true, true, true, true, false, false]")));
and have tried it without the [] brackets. According to the flowplayer site:
Specifies which menu items will be shown. This is an array that contains a boolean value for each of the items. By default it shows them all. For example following configuration hides the fifth menu item:
menuItems: [ true, true, true, true, false, true ]
Any ideas?
Comments
Comment #1
Stuart Greenfield commentedI'm changing this to a feature request as at the moment you can't get SWF Tools to do this. It's to do with the way FlowPlayer likes to receive its settings - you have to build an array that gets turned in to a flashvars variable called 'config'. The way this process is currently handled means that the code in SWF Tools needs amending slightly.
Leave it with me and I'll see if I can get something done in the next few days!
Comment #2
matt bthanks Stuart - I really appreciate this module!
Comment #3
Stuart Greenfield commentedI need to think about how to do this properly, but in the meantime you can enable the feature by adding the following code to line 147 of
flowplayer.module.And then you can write a line like this to set your menu options:
This will actually let you assign any FlowPlayer setting to your config file as it will now merge the othervars settings with the module generated settings.
Note - you have to use PHP code. The [ and ] seem to confuse the SWF Tools input filter.
Let me know if it works!
Comment #4
matt bThat works a treat! It would be good to be able to configure this globally on the settings for flowplayer, as well as by passing parameters to swf.