KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
A videoconferencing project I was working on used JMF to capture video and audio, and transmit it to another endpoint. An issue was that my team didn't want the user of the product to have to install JMF. I thought it might be worthwhile to share our solution to this problem. It works. It works well. My question to you is: does anyone have a better way to do it? Environment: Windows, XP and above Download JMF for Windows Install it on your machine Locate the following dll s in the system32 folder after jmf installs: jmacm.dll jmam.dll jmcvid.dll jmdaud.dll jmdaudc.dll jmddraw.dll jmfjawt.dll jmg723.dll jmgdi.dll jmgsm.dll jmh261.dll jmh263enc.dll jmjpeg.dll jmmci.dll jmmpa.dll jmmpegv.dll jmutil.dll jmvcm.dll jmvfw.dll jmvh263.dll jsound.dll Copy the dll s into a temporary folder Locate the jmf.properties file (Do a search on your computer for it) Download the JMF source code In the source code, find the following files: JMFinit.java JMRPropertiesGen.java Registry.java RegistryGen.java Create a package; I'll call it JMFNoInstall Add the files listed in step 6 Add a class called Main to this package as such: package JMFNoInstall; // add your imports and whatnot here public class Main() { public Main() { JMFinit.main(null); JMFPropertiesGen.main(null); Registry.main(null); RegistryGen.main(new String[] { new File(".").getAbsolutePath(), "registrylib" }); } } The jmf.properties file needs to go in the same folder as the class that has your main method or the same folder as the JAR archive that contains the main</c
Tags (comma-separated)
Save Edits
Cancel