Thu 06 Jan 2011 01:18:33 PM UTC, comment #9:
The second patch is better, but still needs improvement by storing a required fixed scale mode in just one place, then setting it and refusing to change the scale mode if this fixed one was set.
For setting an initial scale mode that the SWF is allowed to change later, no patch is required.
|
Tue 01 Dec 2009 12:05:18 PM UTC, comment #8:
Hi Benjamin
I've basically implemented the solution you suggest now against the latest trunk, hoping I can get you to add this one to the main trunk now.
Your solution was much more elegant I think. So thanks for your help in suggesting it, and helping with answering my silly questions :)
(file #19174)
|
Tue 17 Nov 2009 12:34:49 PM UTC, comment #7:
Nevermind that question. Upon more investigation I found http://www.gnu.org/software/gnash/manual/gnashuser.html#gnashrc and answered my own question. Sorry.
|
Tue 17 Nov 2009 12:03:05 PM UTC, comment #6:
Thanks so much Benjamin :)
Following your advise I've looked at the code and implemented something I think will work. It compiles... But.
I've got a (possible) silly question. I'm on a Ubuntu 9.10 machine. How do I set this rcfile value so I test if it works?
|
Mon 16 Nov 2009 02:25:11 PM UTC, comment #5:
See rc.h and rc.cpp. The closest to what you want is probably the quality setting, so you could look at that for a starting point.
Also bear in mind that there is a standard variable "salign" that you can pass in the FlashVars to a flash player (including Gnash). It won't prevent the SWF from changing the scale mode later, but sets the starting mode.
|
Mon 16 Nov 2009 10:52:22 AM UTC, comment #4:
I've updated the patch for Gnash 0.8.6.
However, it is still the same implementation.
Benjamin:
I would like to try create an implementation like the one you mentioned: "The simplest way would be an rcfile entry, which movie_root could check on construction (_scaleMode), and then refuse to change scale mode if requested by the SWF."
However. I'm not sure how to create this rcfile entry, or which it is... Can you please point me in the direction of source code for this?
(file #19068)
|
Wed 01 Apr 2009 04:28:35 AM UTC, comment #3:
Hi Sandro
You right, but we'll probably have situations where we'd like to be able to force a particular type of scaling. If we're trying to play 3rd party swf's and their scaling has been incorrectly set for instance, it's an easy way for us around that issue.
I will look at developing it into an rcfile entry, but I'm not quite sure how that works yet, and this patch is not a priority project atm, as the current patch works.
However, I probably will be looking to develop a more solid solution soon, as updating the patch to match the trunk quickly gets tedious.
|
Fri 13 Mar 2009 02:35:24 PM UTC, comment #2:
Kristian, as I get you're in control of those SWF movies,
wouldn't it be easier to set Stage.scaleMode in ActionScript directly ?
|
Sat 07 Mar 2009 12:44:43 PM UTC, comment #1:
I wouldn't be against putting something like this in trunk, but there shouldn't be any need to clutter up the GUI like that.
Scale mode is a property of the Stage (movie_root), and there's no reason why Gnash can't provide an override. The simplest way would be an rcfile entry, which movie_root could check on construction (_scaleMode), and then refuse to change scale mode if requested by the SWF.
|
Mon 16 Feb 2009 07:09:25 AM UTC, original submission:
This patch was developed for eyemagnet as they wanted to be able to force an .swf to scale with the flash exactFit stage scaling mode.
I have attached some screenshots to try demonstrate what the plugin does exactly.
I hope this will make it into the Gnash main trunk, but if it does not then that's ok too. In that case hopefully posting it here will prove useful to someone else.
|