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.

[742 byte] By [yogeshjoshijia] at [2007-11-27 11:30:49]
# 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

Amit_Jain@visitindia.coma at 2007-7-29 16:36:05 > top of Java-index,Security,Cryptography...
# 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

Stefan_Marica at 2007-7-29 16:36:05 > top of Java-index,Security,Cryptography...
# 3

HI

can you send code or example to class-load code into my applet so that I can pull the classes from the additional jar files inside my jar file.

Thanks

Amit_Jain@visitindia.coma at 2007-7-29 16:36:05 > top of Java-index,Security,Cryptography...