make a final pass to make sure we are not leaking memory. After that, I want to clean up the build system, and the samples. M build.xml - Call make export in mozilla directory - Fix clean target M mozilla/Makefile.in - Added export target M classes/org/mozilla/pluglet/PlugletLoader.java - avoid ambiguity by casting + CodeSource codesource = new CodeSource(url,(java.security.cert.Certificate []) null); M examples/MediaPlayer/JMPlayer.java - remove debug printfs M mozilla/npAPInsIInputStreamShim.cpp M mozilla/npAPInsIInputStreamShim.h - remove debug printfs - fix buffer allocation, refactor into its own method. - Use NPN_Mem* methods for memory allocation. - isolate lock access to private methods. Avoids locking when we already own the lock, which would cause an assertion. M mozilla/nppluglet.cpp - in dtor, check for null mScriptablePeer ivar before accessing it. M mozilla/nsScriptablePeer.cpp - whitespace M src/Pluglet.cpp - get the plugletEngine from do_GetService(). M src/PlugletEngine.cpp M src/PlugletFactory.cpp M src/PlugletLoader.cpp - remove debug printfs M test/test.java - added test finalize. build.xml classes/org/mozilla/pluglet/PlugletLoader.java examples/MediaPlayer/JMPlayer.java mozilla/Makefile.in mozilla/npAPInsIInputStreamShim.cpp mozilla/npAPInsIInputStreamShim.h mozilla/nppluglet.cpp mozilla/nsScriptablePeer.cpp src/Pluglet.cpp src/PlugletEngine.cpp src/PlugletFactory.cpp src/PlugletLoader.cpp test/test.java git-svn-id: svn://10.0.0.236/trunk@214609 18797224-902f-48f8-a5cc-f745e15eee43
MediaPlayer Pluglet Example. ================================ This directory contains the source code for MediaPlayer pluglet example. Pluglet is using Java Media Frameworks 2.0b MediaPlayer bean. ======================================================================== Win32 Build Directions: ======================================================================== Requirements: * built latest mozilla tree for WinNT4.0 * JDK1.3 * built Java-Implemented Plugins. * JMF2.0b installed. How To Build: * add jmf.jar to classpath * type "nmake /f makefile.win" How to Run: * Follow the directions in ..\..\README * Add jmf.jar to classpath * Set PLUGLET environment to the directory you have JMPlayer.jar * Run mozilla and load page play.html from this directory and you will see sample avi file. (In addition you need to download some avi file and name it test.avi.) Warning: JMF MediaPlayer does not support all the video formats so you can see some errors from player when loading unsupported format file.