flash ( With details and user test results)

Norberto Meijome freebsd at meijome.net
Mon Jul 2 06:41:15 UTC 2007


On Sun, 1 Jul 2007 22:21:14 -0400 (EDT)
"kalin mintchev" <kalin at el.net> wrote:

> > On Sun, 1 Jul 2007 18:42:13 -0400
> > Robert Huff <roberthuff at rcn.com> wrote:
> >
> >>
> >> RW writes:
> >>
> >> >  If you install www/nspluginwrapper, and follow the instructions,
> >> > the flash plugin will work with native firefox and opera browsers.
> >>
> >> 	This is flash-9, and not flash-7?
> >>
> >
> > Yes
> 
> can you use that flash7 to watch videos on the new cnn site and youtube?

---
[ from freebsd-ports@ ]
On Sun, 01 Jul 2007 21:34:28 +0200
Gaye Abdoulaye Walsimou <walsimou at walsimou.com> wrote:

> kalin mintchev a écrit :
> > and which port do i exactly install to be able to whach flash video?
> > i did the /usr/ports/www/flashplugin-mozilla - didn't work. the other one
> > is marked as broken...
> > now that cnn moved to that i can't watch it anymore and i have never been
> > able to see any of the videos on youtube....  what do i need?
> >
[...]

> >   
> I follow this howto (french howto) and have flash 9 working
> 
> http://oregnier.developpez.com/cours/unix/freebsd/plugins/firefox/nspluginwrapper/

ok.. this is quite an interesting thread. I had tried flash > 7 with native
ffox sometime last year. The answer was to give up on it and have linux-firefox
and the whole linux-* saga.

So I decided to give this a try again, with some mixed results. I double
checked what I was doing with the steps shown in the URL Gaye kindly provided,
it all checked out as expected.

Ups : ffox native still works better, to me, than linux-firefox : it's not such
a cpu hog, it feels more snappy. Flash9 works mostly, except in certain cases,
and in those cases, it's not fatal (ffox doesnt die)

Downs: Flash videos, such as those in video.google, youtube and others, load
(static image is shown, start streaming), play for about 1 second with video +
sound, and then they just dissapear from the browser, with errors from the
NSPluginWrapper.

Details follow, apologies for the lengthy email...


$ uname -a
FreeBSD ayiin.xxxxxxx  6.2-STABLE FreeBSD 6.2-STABLE #10: Sun Jul  1 09:50:58
EST 2007     root at ayiin.xxxxxxxxx:/usr/obj/usr/src/sys/AYIIN  i386

Kernel + world updated on  Sun Jul  1 09:50:58 EST 2007 (EST = GMT +10)
Ports up to date.

Native ffox : firefox-2.0.0.4,1
Native JDK : diablo-jdk
Linux Flash 9 : www/linux-flashplugin9
Native Mplayer-plugin www/mplayer-plugin
plugin wrapper : www/nspluginwrapper

up to here we have jdk, mplayer running GREAT (which is better than my
experience in the past)

[betom at ayiin] [Mon Jul  2 15:22:36 2007]
/usr/ports/www/nspluginwrapper
$ nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/X11R6/lib/firefox/plugins
Looking for plugins in /usr/X11R6/lib/firefox/plugins
Auto-install plugins from /usr/X11R6/lib/linux-mozilla/plugins
Looking for plugins in /usr/X11R6/lib/linux-mozilla/plugins
Install plugin /usr/X11R6/lib/linux-mozilla/plugins/nphelix.so
  into /home/betom/.mozilla/plugins/npwrapper.nphelix.so
Install plugin /usr/X11R6/lib/linux-mozilla/plugins/libflashplayer.so
Segmentation fault: 11

I then cleaned up all linux firefox left overs, run as root just in case.

[root at ayiin] [Mon Jul  2 15:54:00 2007]
~
# nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/X11R6/lib/firefox/plugins
Looking for plugins in /usr/X11R6/lib/firefox/plugins
Auto-install plugins from /usr/X11R6/lib/linux-mozilla/plugins
Looking for plugins in /usr/X11R6/lib/linux-mozilla/plugins
Install plugin /usr/X11R6/lib/linux-mozilla/plugins/nphelix.so
  into /usr/local/lib/browser_plugins/npwrapper.nphelix.so
Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
Install plugin /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
Segmentation fault: 11 (core dumped)

nspluginwrapper -l 
cores with seg 10 or 11.

BUT installing /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so by hand
worked great. strange.

Anyway, this is what happens when I tested the flash plugin. The following is
the stderr from firefox (native), with my comments interspec'ed , beginining
with ###

[betom at ayiin] [Mon Jul  2 15:55:27 2007]
~
$ firefox
###
### Not sure what the msgs up to this point refer to - firefox-native without any plugin doesnt produce these messages at all
###

(Gecko:42617): libgnomevfs-WARNING **: Deprecated function.  User modifications to the MIME database are no longer supported.

(Gecko:42617): libgnomevfs-WARNING **: Deprecated function.  User modifications to the MIME database are no longer supported.

(Gecko:42617): libgnomevfs-WARNING **: Deprecated function.  User modifications to the MIME database are no longer supported.

(Gecko:42617): libgnomevfs-WARNING **: Deprecated function.  User modifications to the MIME database are no longer supported.

(Gecko:42617): libgnomevfs-WARNING **: Deprecated function.  User modifications to the MIME database are no longer supported.

(Gecko:42617): libgnomevfs-WARNING **: Deprecated function.  User modifications to the MIME database are no longer supported.

###
### Loaded a local .swf . It worked ok...then issued this msg.
###

*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Connection closed

###
### Reloaded the .swf, no problems this time.
###

###
### Went to video.google.com - clicked on one of the videos, randomly http://video.google.com.au/videoplay?docid=-708218345413567790 
### Video started loading, buzzing sound ( as if there was static in sound card), then video completelly blanked out ,as if it was removed from the page. Msgs showed:
###

(npviewer.bin:42668): Gtk-CRITICAL **: gtk_window_resize: assertion `width > 0' failed
*** NSPlugin Wrapper *** ERROR: NPP_Write() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_DestroyStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_URLNotify() invoke: Connection closed

*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPClass::Invalidate() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Connection closed
###
### repeated test with video.google.com
###
(npviewer.bin:42682): Gtk-CRITICAL **: gtk_window_resize: assertion `width > 0' failed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
[MORE AND MORE OF THE SAME, CONTINUOSLY]
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed

### yes, the messages were non-stop while the video.google page was open - i hit back and got :
*** NSPlugin Wrapper *** ERROR: NPP_DestroyStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_URLNotify() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Connection closed

###
### tried with youtube.com. 
### Flash loaded ok, simple flash stuff like the 'videos being watched now' worked fine.
### Clicking on the suggested videon on the top RHS started playing the video + sound, after 1 second, again:
### this happens with CPU spiking to 100%
###
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_NewStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_URLNotify() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
[MORE AND MORE OF THE SAME, CONTINUOSLY]
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Connection closed


###
### Hit back button, bang, NPP_Destroy
###
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPClass::Invalidate() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_DestroyStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_URLNotify() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPClass::Invalidate() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Connection closed

###
### Browsing around... non-video Flash objects. working fine
###
** NSPlugin Wrapper *** ERROR: NPP_Write() wait for reply: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_DestroyStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_New() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Write() wait for reply: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_DestroyStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_SetWindow() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_SetWindow() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_New() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Connection closed

###
### Visited http://www.thegridlayer.com/ . Main Flash loads and dissapears within a second
### NO CPU spike.
###
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_Write() wait for reply: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_DestroyStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_NewStream() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** ERROR: NPP_GetValue() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_SetWindow() invoke: Connection closed
*** NSPlugin Wrapper *** ERROR: NPP_New() invoke: Connection closed

If anyone has any tests / changes to suggest, I'm happy to test :)

Thanks!!

_________________________
{Beto|Norberto|Numard} Meijome

FAST, CHEAP, SECURE: Pick Any TWO

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.


More information about the freebsd-questions mailing list