Also: gnash doesn't run in IE, right? So no need to worry about a solution there? It will always just be registered in the plugins array?
On Thu, Apr 1, 2010 at 2:11 PM, Geoff Stearns <tensafefr...@google.com>wrote: > Ok, I'll look for "AVM2" in the string as well, and if that is present, > then we'll allow as3. > > The h.264 check is a check for player version only: 9.0 r115, so just > increase your player version to that if you want to allow it. > > There is an internal check in the player also, but it only looks for Flash > Lite (os string of "FL" I believe) so I don't think it will block gnash > players. > > > > On Thu, Apr 1, 2010 at 1:50 PM, strk <s...@keybit.net> wrote: > >> On Thu, Apr 01, 2010 at 01:29:40PM -0700, Geoff Stearns wrote: >> >> > I don't want to just search for "Gnash" and forever banish you to the >> depths >> > of as2 :) >> >> Good point. >> >> > 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 >> > } >> >> Problem is last release of Gnash (0.8.7) already advertises major 10. >> >> What about adding an explicit .canPlayAVM2() function ? >> We could add an AVM2 string in plugin description >> whenever we'll support that, and having 'Gnash' but no 'AVM2' would >> mean no AVM2 support. >> >> BTW, I've seen one of the functions was also returning whether >> h.264 is supported by player. I think gnash does support h.264 as >> long as the ffmpeg or gstreamer media handler support it (could >> be another candidate label to add to the plugin description). >> >> --strk; >> >> >> > >> > >> > >> > On Thu, Apr 1, 2010 at 1:14 PM, strk <s...@keybit.net> 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 >> > > >> >> -- >> >> () Free GIS & Flash consultant/developer >> /\ http://strk.keybit.net/services.html >> > >
_______________________________________________ Gnash-dev mailing list Gnash-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-dev