From vlisivka at gmail.com Thu Sep 3 18:49:08 2009 From: vlisivka at gmail.com (Volodymyr M. Lisivka) Date: Thu, 03 Sep 2009 21:49:08 +0300 Subject: Problem with nspluginplayer and linflash.so Message-ID: <4AA00FA4.3070603@gmail.com> I used Fedora 11-i386 and Flash player 9 and 10. I installed nsplugin wrapper from RPM, which I compiled by myself using source packages downloaded from nspluginwrapper site. I trying to use nspluginplayer to play flash movies in full screen modem, but flash player freezes after short period of time: it starts to play flash movie, then freezes. CPU is not used: flash player just waiting for something. How I can debug that? Is that is bug or some code is not implemented yet? BTW: I cannot compile package on fresh CentOS 5-x86_64 due to missing dependency, which is not listed in package build dependency list. -- Best regards, Volodymyr M. Lisivka From jburke at remap.ucla.edu Tue Sep 8 02:50:16 2009 From: jburke at remap.ucla.edu (Jeff Burke) Date: Mon, 7 Sep 2009 19:50:16 -0700 Subject: Issue with socket support in Flash plugin? (or with threads...?) In-Reply-To: References: Message-ID: <102768A521E2CC4CAEDAA6DC9AFAD286602EB7@fire.remap.ucla.edu> Hello, I am looking to use the nspluginwrapper standalone player to run a Flash application on an ARM-based internet tablet. (Nokia N810 with the Maemo linux distribution.) The platform supports Flash 9 in the mozilla-based browser but the memory consumption of the browser itself is huge enough to make it unusable... The npplayer looks like a great solution! I've encountered two problems, summarized as follows... (Knowing that I might not get much help for ARM I did a test on x86 Ubuntu. :) Issue #1 - Testing first on Ubuntu for x86 with Flash Player 10: I built from 1.2.2 source (and have tried the debian binary) Then tried a sample SWF with the following pseudocode in Flash- open socket_1 to localhost server that sends data every N seconds add listeners for socket_1 (data received, errors, etc.) open socket_2 to localhost server that sends data in reponse to query add listeners for socket_2 (data received, errors, etc.) socket_1_data_received: add the received string to a text box send query to socket_2 socket_2_data_received: add the received string to a text box That's all the sample does. After some messing with Flash security settings, I got this to work. It works either 1 time (about 20% of cases) or about 25-26 times (about 80%) of cases, and then dies without an error, after printing the data received in socket_1_data_received. [Note: The same SWF works 100+ times on Windows Flash Player 10, until stopped manually.] Could this be related to a threading support issue mentioned on the website? I don't know that much about the internals of the plugin API. Issue #2 - So, I tried on ARM (first, actually). I was able to get nspluginwrapper to compile for ARM and run on Maemo (OS2008/Diablo). It uses Flash Player 9. The same test SWF as described above loads and plays in npplayer, connects to the socket servers and localhost, and the servers receive data sent to them, but the receive data listeners in the SWF are never called. It's as if the SWF is in the Flash 8 "net-send" sandbox, but it shouldn't be - I suspect it is related to the above threading problem and not security as Flash is configured to trust the SWF directory. (Note our full application with network connectivity works in the mozilla-based browser on this platform.) Is this likely the same issue? *Any* advice would be appreciated: For example, - places to look in the nspluginwrapper code for thread handling and where there might be issues on a regular debian distribution - info on how Flash sockets (the Socket class) would interact with the plug-in API - I think this is outside of stream handling, so it would only be in the creation of threads, no? - anything else I am missing Thanks for any leads. It would be awesome if we could get a lightweight flash player working on this memory constrained (but very interesting) platform. Best, Jeff Burke UCLA Center for Research in Engineering, Media and Performance