Problem description:
1. I add a flv-file as asset, and type in custom size 300x200, then copy-paste the code (for example [asset|aid=5|format=swfobject|formatter=asset_bonus|title=xxxxx.flv|width=300|height=200|resizable=true|align=none|bgcolor=#FFFFFF]) into my body field and then save the node.
2. Embedded video player is on the page, but the size is 120x80, not 300x200
3. editing the node and changing the width and height parameters for the code manually and saving afterwards doesn't help either, still 120x80
Other observations:
- If I add a print statement to theme_asset_bonus_swfobject at asset_bonus.module, it will be printed right after I save the node, and the arg(2) at that point is 'edit'. Thus, the size is set to static 120x80 per the commented lines "// Set a static width/height to keep the asset cck gui clean"
- When the node is shown, theme_asset_bonus_swfobject is not called again, since it was already done. Seems that Drupal cache or some other is preventing this
- If I clear the page cache while being on the view stage of that node, the theme_asset_bonus_swfobject is called on fresh settings and the video window is shown the right size
- taking away the elseif-statement in theme_asset_bonus_swfobject (elseif (arg(2)=="edit") { .... }) stops this behavior - what is that for exactly? I wasn't able to create any problems without those lines.
Comments
Comment #1
wmostrey commentedI recently fixed something similar for the mp3 player in http://drupal.org/cvs?commit=150992. I'll check if the solution is the same.
Comment #2
tormu commented1.0 doesn't seem to be fixing this problem - have you had the time to check this?
Comment #3
wmostrey commented