Capture Device using JMF
when mysigned applet/jar is executed on client machine where JMF is not installed.Then i am not able to Capture the Microphone using
CaptureDeviceInfo di =null;
AudioFormat a =new AudioFormat (AudioFormat.LINEAR,
8000, 16, 1);
Vector deviceList = CaptureDeviceManager.getDeviceList(a);
for(int i=0;i<deviceList.size();i++){
System.out.println("deviceList:-> "+deviceList.elementAt(i));
}
what will be the reason, even my jar contain all needed .jar files.
# 1
HI,
I am not sure but,
what i am suspecting that during jmf installation a registry file is created and CaptureDevice may be using that registry file for Capturing the Device.
If JMF is not installed there then no way to get registry file.
What u think.
Thanks,
Amit Jain
# 2
'even my jar contain all needed .jar files'
Just puttin the JMF Jars inside your Jar file is NOT enough - you will have to build some class-loading code into your app so that you canpull the classes from the additional jar files inside your jar file
Having done that you may also have to run the JMF registry code as mentioned in the other post