gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: [Gnash-dev] Youtube support thoughts]


From: Geoff Stearns
Subject: Re: address@hidden: [Gnash-dev] Youtube support thoughts]
Date: Thu, 1 Apr 2010 13:29:40 -0700

Do you want to add some sort of failsafe thing so that "some day" when you do support as3, this function will keep working properly?

I don't want to just search for "Gnash" and forever banish you to the depths of as2 :)

We currently check for version 9 + a specific version of the sony player build, so I could continue to enforce the version 9 check.

So the logic would be:

if (playerMajorVersion == 9 && playerDescription.indexOf("Gnash") > -1) {
  // restrict to as2
}

Sound good? So then if you guys do start supporting as3 at some point, just increase your version to 10 (assuming that won't break other sites expecting to find fp10 features, but I guess that will have to be fixed down the road?)



On Thu, Apr 1, 2010 at 1:14 PM, strk <address@hidden> wrote:
On Thu, Apr 01, 2010 at 01:03:16PM -0700, Geoff Stearns wrote:
> I believe the canPlayV9Swf() was created for a specific sony device that is
> similar to your needs: it advertised itself as a v9 player, but it can't
> play as3 swfs.
>
> Do you guys use the same plugin description as the "real" flash player? If
> there's something we can look for in JS then we should be able to add you to
> the list of things that need the as2 player.

The default plugin description has both a "compatibility" string
intended to work with flash detection packages out there _and_
gnash specific version. It looks like this:

<<
Shockwave Flash 9.0 r0.
Gnash trunk, the GNU SWF Player. Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Gnash comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of Gnash under the terms of the GNU General Public License. For more information about Gnash, see http://www.gnu.org/software/gnash.
Compatible Shockwave Flash 9.0 r0.
>>

As you can see the _first_ and _last_ lines have the
compatibility stuff.
The second line starts with 'Gnash' followed by a release
version ('trunk' in this case but normally something like 0.8.7).
Then comes copyright notice and link.

It would be great if you could detect that, should be as simple
as looking for 'Gnash' in the whole description.

> Do you have plans to support as3 at some point? We have been moving heavily
> into as3 and hope to only keep a bare minimum feature set for as2 at some
> time in the near future. (just as fyi).

It's an hard work to get there really. Hopefully "at some point"
someone will show up with funds or time to complete it :/

--strk;

 ()   Free GIS & Flash consultant/developer
 /\   http://strk.keybit.net/services.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]