Cannot get capture device with CaptureDeviceManager.getDeviceList(null)

Hi friends, I am facing the problem and I still don't know how to solve the problem.
I try to get microphone for cpture audio but it not work.
My java code is
Vector captureList = CaptureDeviceManager.getDeviceList(null);
System.out.println("Number of Capture Devices Found: " +captureList.size());
The result is
Number of Capture Devices Found: 0
but I have tried with javax.sound for get microphone it work.
AudioFormat audioFormat = getAudioFormat();
DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
TargetDataLine targetDataLine = (TargetDataLine)AudioSystem.getLine(dataLineInfo);
If anybody knows how to solve this problem, please help me.
Thank you very much.
Regards,
TheX

Hi friends, I am facing the problem and I still don't know how to solve the problem.
I try to get microphone for cpture audio but it not work.
My java code is
Vector captureList = CaptureDeviceManager.getDeviceList(null);
System.out.println("Number of Capture Devices Found: " +captureList.size());
The result is
Number of Capture Devices Found: 01- Check your classpath, whether it contains JMF path or not.
2- Check whether JMF is installed correctly or not i.e. are you able to capture using JMStudio? and does JMStudio lists your capture devices?
3- If you are using a jar in Vista, then there is almost NO solution, you will always get 0, check the following threads:
[http://forums.sun.com/thread.jspa?threadID=5340752]
[http://forums.sun.com/thread.jspa?threadID=5340810]
Thanks!

Similar Messages

  • CaptureDeviceManager.getDeviceList(null);  Returns no devices!

    Hello,
    Just installed JMF on Fedora Core 5. All works okay, jmfinit and jmfregistry can find my capture devices and list them also. Jmstudio also works fine when issuing the following command: java -Dawt.toolkit=sun.awt.motif.MToolkit JMStudio
    However when i try to get my capture device(Bt484,bttv) from code i won't work.
    Vector devices = CaptureDeviceManager.getDeviceList(null);
    returns an empty list.
    and
    CaptureDeviceInfo di = (CaptureDeviceInfo) devices.elementAt(0);
    of course returns an: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
    There is no way i can approach my devices.....My classpath, jmf_home and permisssions are set right.
    Anyone has an solution?
    Thanks, and with kind regards,
    Olly

    private static void getList() {
              // TODO Auto-generated method stub
              Vector devices =
                   (Vector) CaptureDeviceManager.getDeviceList(null).clone();
              Enumeration enum = devices.elements();
              while (enum.hasMoreElements()) {
                   CaptureDeviceInfo cdi = (CaptureDeviceInfo) enum.nextElement();
                   String name = cdi.getName();
                   Format[] fmts = cdi.getFormats();
                   System.out.println(name);
                   for (int i = 0; i < fmts.length; i++) {
                        //System.out.println(fmts);
                   if (name.startsWith("vfw:")){
                   System.out.println(fmts[i]);
                        //CaptureDeviceManager.removeDevice(cdi);

  • I cannot get my iMac with built-in airport to allow internet connections to Nook and PS3. The devices access the network, but internet connection fails. Internet sharing is enabled, network security (WEP, WPA) is completely off.  What to check next?

    I cannot get my iMac with built-in airport wi-fi to allow internet connections to Nook and PS3. The devices access the network, but internet connection fails. Internet sharing is enabled, network security (WEP, WPA) is disabled.  What to check next?

    On an additional note, I've purchased a wireless router and everything connected on the first attempt.  It just vexes me that the built-in wireless isn't working as a router.  Is this another example of "Mac only plays with Mac"?

  • CaptureDeviceManager.getDeviceList(null)

    Hello everyone,
           Vector list=CaptureDeviceManager.getDeviceList(null);I have a problem capturing the devices in my application (it is a desktop application not an applet). This code generates "list.size()==0" no matter what I tried. So I went on a Google hunt, and found out that my problem is, as far as all the threads I read pointed out, that I don't have the JMF installed on my machine, and that my application can't find the jmf.properties file.
    So the obvious solution: Install JMF and add the containing folder to the build path.
    Problem, My client does not want his clients to have the need for an extra external installation process, in other words, he would like them to install his application only.
    so I'm here asking for advice, if you have any idea, please do share, I've been reading stuff through the night and got no where.
    I could speculate on a few method to over come this, but they would be baseless, since I never dealt with this before, and I would like to know what you pro's think.
    Thanks in advance,
    Adam Zehavi.

    sure, no problem, I was at it for hours to solve this.
    first, I installed the JMF but didn't add it to the build path (the entire point of my problem was I didn't want to install JMF and still use its abilities), or anywhere, and I tested before and after and got the same results, nothing happened, no devices were found. so I took the native dll files and located them in a folder that was pointed by the system path and bingo... it worked(or so I thought), for a while, then I wanted to put these files in another folder, and found out that with eclipse for some reason, I could not point no matter what I did to that folder, and even if I added manually to the system path it didn't work see post, and moreover if I export this project I cannot use the files, so I exported the jar and located the files from the installation in the same folder, and it worked
    as for the running on the IDE, the only thing that worked was to add the library of the dll's as native resource for the JMF jar file
    hope this is clear enough...
    Adam.

  • CaptureDeviceManager.getDeviceList(null) problem

    Hello all,
    I'm trying to create application under Eclipse 3.1. I want to print list of devices that are attached to my computer, making a call:
    CaptureDeviceManager.getDeviceList(null)My problem is that under Eclipse all the time I have that the list of available devices is empty. This is really strange because under JCreator everything works fine.
    Of course I'm able to see 2 audio devices under JRegistry.
    JMF_HOME=C:\Program Files\JMF2.1.1e
    Who can help me with this?

    sure, no problem, I was at it for hours to solve this.
    first, I installed the JMF but didn't add it to the build path (the entire point of my problem was I didn't want to install JMF and still use its abilities), or anywhere, and I tested before and after and got the same results, nothing happened, no devices were found. so I took the native dll files and located them in a folder that was pointed by the system path and bingo... it worked(or so I thought), for a while, then I wanted to put these files in another folder, and found out that with eclipse for some reason, I could not point no matter what I did to that folder, and even if I added manually to the system path it didn't work see post, and moreover if I export this project I cannot use the files, so I exported the jar and located the files from the installation in the same folder, and it worked
    as for the running on the IDE, the only thing that worked was to add the library of the dll's as native resource for the JMF jar file
    hope this is clear enough...
    Adam.

  • Just installed a new Airport Exteme.  Set up was no problem however we have  3 IPads and 1 Mac laptop and cannot get all devices to access Internet. Every reset of the airport gives a different combination of devices allowed access. Any ideas as to why?

    Just installed a new airpot extreme with a modem to use as a wireless system. Setup was successful however with 3 iPads and one laptop we cannot get all devices access to Internet. Each reset of airport extreme results in a different combination of devices that successfully connect. Any ideas as to why?

    Well, this is interesting,
    Let me tell you coulpe of things I noticed:
    - Are you using LEAP as the EAP method? some config examples illustrate configuriong using LEAP with WEP keys. Forget this and use WPA2-AES.
    http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_example09186a00801c40b6.shtml
    - in some AP configurations (AP1 for example) I can see that:
    wlccp authentication-server client any method_Users
    This means that the wlccp client authentication will use the method called method_Users. Let us see what is configured with this method:
    aaa authentication login method_Users group Users
    This shows us that the method method_Users uses the server group named Users.
    let us see what is configured withe the group Users:
    aaa group server radius Users
    NOTHING!! it is empty!! so when a client tries to connect it will try to autheticate it against the radius server but the radius server group that it needs to check is empty.
    so I think you need to either use the correct method under which the server is configured with the wlccp statement. OR you need to configure the method_Users with correct user group that contains a server.
    Check and let me know if that works.
    Regards,
    Amjad

  • Is there a way to find out whether my imessages are being received by a specific iphone user or if there is a problem with their phone? Cannot get in touch with an out of state friend for several days.

    I'm looking for a way to check and see if a specific iPhone user is receiving my imessages or if there phone is not working properly.  I cannot get in touch with an out of state friend for several days and the only number I have is to their cell (iphone).  Thank you.

    YYou can only get a read receipt, not if they only received it.
    http://m.imore.com/how-turn-and-read-receipts-imessage

  • Hi! I've got CS3 Design Standard - the actual disks and Software License certificate. It was installed on my laptop which crashed and could therefore not be uninstalled. I have now installed it on my new MacBook Pro, but cannot get it registered with the

    Hi! I've got CS3 Design Standard - the actual disks and Software License certificate. It was installed on my laptop which crashed and could therefore not be uninstalled. I have now installed it on my new MacBook Pro, but cannot get it registered with the serial number. Is it because it wasn't uninstalled on the previous laptop? What to do now?? Thx!

    Maybe this can help someone else...  I simply had to properly uninstall CS3 and reinstall it again after that.  I think that sorted it!  I also remember having a similar issue with Macs at work a couple of years back.  Not sure whether the same applies to CS5/CS6.  Here's a link on how to properly uninstall CS3 on Windows XP, Windows Vista and Mac OS.  I'm on OS X 10.9.2 but it worked just fine.  Remove Creative Suite 3 and CS3 products

  • Cannot get Membership Provider with name RoleProvider. The membership provider for this process was not properly configured. You must configure the membership provider in the .config file for every SharePoint process.

    I am trying to create a web application that uses AD LDS as its authentication provider. I have followed all the steps and verified all the web.config files, but I receive the error below:
    Cannot get Membership Provider with name CustomRoleProvider. The membership provider for this process was not properly configured. You must configure the membership provider in the .config file for every SharePoint process.
    Has anyone come across this error before?

    There seems to be some issues in your web.config files. Please make sure your Web application entries for membership and role provider(at central admin site) are matching with Web.config entries. your error
    "Cannot get Membership Provider with name CustomRoleProvider.
    ", indicating that you may have used role provider name in Membership provider text box or in web.config.
    Also please make sure that you have correct entries in all 3 web.config files - Central Administration , Security Token Service (STS), Web application .
    Please refer  -
    Forms Based Authentication (FBA) in SharePoint 2013
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • I cannot get time machine (with airport) to back up my mac. It worked previously but not now. It is working on my macbook. the message i get is "Time Machine couldn't back up to '(airport network name)'"

    I cannot get time machine (with airport) to back up my mac. It worked previously but not now. It is working on my macbook. the message i get is "Time Machine couldn't back up to '(airport network name)'" Any help is appreciated.

    OS is important.. What OS is on Mac and what is on the working macbook?
    Was the Airport setup from the Macbook? That might be why it works from there..
    Does the AE show up in Mac airport utility?
    Can you mount the disk in finder and copy files to it/from it??
    Did you try a TM reset after mounting in Finder.. so you know it is available?
    What about a network reboot.. does it work post a restart for a few minutes/hours/days???

  • New Mac Book Air with external Super drive cannot get Book camp with windows 7 dirve to load

    New Mac Book Air with external Super drive cannot get Book camp with windows 7 dirve to load?

    Dear All,
    Also i am having a strange problem.
    It is impossible for me to use a downlaod manager such as orbit, or IDM..
    Could it be linked with booth camp ?
    Thanks

  • Why can't CaptureDeviceManager.getDeviceList() get capture device?

    My laptop can capture sound from microphone. But CaptureDeviceManager.getDeviceList(new AudioFormat(...)) can't get any device from my system.

    Try deleting it from MAX and then adding it again.
    Or resetting your MAX configuration and then rebooting.
    Lastly, dry reinstalling MAX.
    Since so many pieces of software depend on MAX, you'll probably have to reinstall other NI software if you go this route.
    Casey B.
    Applications Engineer
    National Instruments

  • HT204053 I recently changed my apple id to a new email.  I cannot get my devices back online with my new apple id in the icloud

    I recently changed my apple id to a new email at the same time getting a new Iphone 5.  I cannot get all my devices back online with icloud since.  It is still showing my old email even though I changed it and logged in under the new one.  My icloud information is grayed out for the apple id.

    You need to sign out completely in System Preferences (or Settings)>iCloud and then sign back in again with the new ID. Your iCloud data will disappear when you sign out but will reappear when you sign back in (may take a bit of time).

  • HT5517 got an apple TV but cannot get it TV with  HDMI

    cannot get HDMI to activate on Sony bravia bx400 TV with my apple TV

    make sure you choose the hdmi port the atv is connected to as active input source on your tv
    my bravia have 5 and to view stuff from each of them I need to choose which one using the device
    and the bravia home menus to chose input source as take hdmi 2 or 3 or 1 or...

  • It is unbelievable that you cannot get in contact with a persone from Adobes support team

    Since weeks (or even months) I am not able to start my cc photoshop.
    Yes, I am paying for it every mointh. I have a one year subscription. But what are they for???? To see that I am once again in the situation that my beloved photoshop stopps working again???
    Aftre having the same probmlem for weeks after my installation of the CC  prodcuts finally I got cc photoshop working. I was able to work with it for abaout 6 weeks or so.
    Now when I try to start photoshop I again receive the 0 days LEFT OF YOUR TESTVERSION MESSAGE and I cannot get it running again. I DON´T have a testversion!!!!!!!!!!!!!!!
    I have a paid ADOBE CC PRODUCT Version.!!!
    I need urgent help and I want my money back!!!!!!!!!!

    Actually, you can talk to them.  Just not quite how you would expect to.  ( I JUST got off the phone with them myself )
    Call the main sales line at 1-800-585-0774 ( I know, it makes no sense since it's a sales line, but bear with me ) and listen to the options.  They'll tell you the sales folks won't be able to help you with support related issues, but keep listening.  You'll hear the options given that will allow you to talk to the support folks.
    When I called there was about a twenty minute wait, but they'll allow you to input a callback number and your name so you don't have to sit on the line the whole time.
    I got the call and worked with them to resolve my account issue.  ( Which ended up being totally my fault )

Maybe you are looking for