Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Google Maps and Adobe Flash

16 views
Skip to first unread message

iUm

unread,
Nov 9, 2009, 1:29:02 PM11/9/09
to dev-tech...@lists.mozilla.org
Hi,

i'm developing a standalone Flash player for Linux based on
libflashplayer.so and it's almost finished, but i've encountered an
interesting problem with Google Maps Street View drawing in windowed
mode (via XEMBED). Actually, i call NPP_SetWindow with right width and
height (i.e. the width and height of GtkWindow above which the GtkSocket
is situated) like for any other flash movie, but on Google Maps i can
see the world bihind a gray rectangle which usually serves as a border
(see http://imageshare.web.id/images/4cxzto3lqyotmloy7o.png ). That
rectangle is always 800x500 and never changes its size. But when i
change the GtkWindow's size i just can observe other parts of the world
behing the static rectangle. On a native browser that gray rectangle
changes its size accordingly to NPP_SetWindow call (i.e. size given with
that call).

What did i forget? Should i make some gtk_* command with my
GtkWindow\GtkSocket with NPP_SetWindow or there's some other secret of
proper rendering?

Georg Fritzsche

unread,
Nov 9, 2009, 2:45:12 PM11/9/09
to
While i can't say what exactly is needed i recommend looking at the
plugin handlers in the chrome source if you are out guesses.
I recall seeing some workarounds related to flash drawing in there and
its mostly readable.

Regards,
Georg

iUm

unread,
Nov 20, 2009, 7:37:25 AM11/20/09
to dev-tech...@lists.mozilla.org
Seems, there's a bug in the Adobe Flash plug-in: it depends on
arguments' order, passed to NPP_New.
E.g. to fix that problem with Google Maps i just put "scale"
argument-value pair before "salign" one in NPP_New arguments' list. So,
if "salign" comes before "scale" Street View will be displayed
incorrectly... Nothing similar with Adobe Flash ActiveX, which really
doesn't depends on arguments' order.

iUm

unread,
Nov 23, 2009, 6:11:10 AM11/23/09
to dev-tech...@lists.mozilla.org
To Mike:
Flash plug-in can get a scriptable object from your application via
NPN_GetValue(... , NPNVWindowNPObject, ...). You should return a real
(maybe you have a javascript engine in your app), or just a virtual
(your own simple implementation) scriptable object. Then the plug-in
will call NPN_Invoke with method name "_DoFSCommand" and exactly 2
arguments of NPVariantType_String. Those arguments will be the actual
command and its argument.

Mike

unread,
Nov 29, 2009, 10:20:00 PM11/29/09
to

I had that set up. After several hours (over a week's worth of
searching). It turns out that it's a permissions thing. Even with
allowscriptaccess set to always it wouldn't send invoke commands to a
locally started file. I had to create a dummy URL to return for
top.location. I'm sure there is another way around it, but I couldn't
find it (doesn't mean it isn't on the internet, just that I used the
wrong keywords or didn't read well enough.)

Thanks!

SnowBrittney20

unread,
Dec 20, 2011, 2:24:37 PM12/20/11
to
freelance writer


0 new messages