How detect capture device without jmf&java client pc ??

hi...
a computer install jmf & java => detect catpure device
but... no detect capture device without jmf & java clientpc...
however solved this problem?
plz...
thanks..
email : [email protected]

You must hard code a dependent platform code to examine the registry or its similar in linux.

Similar Messages

  • Detect audio device without jmf-registry

    Hi,
    I am working with Java Media Framework for some time now. But now I got a problem which I couldn't solve although I tried to find a solution on the jmf-web page.
    With the function autoDetect (com.sun.media.protocol.vfw.VFWSourceStream.autoDetect(i)) it is possible to accesses a video capture device without the JMF registry.
    Unfortunately I couldn't find out how I could access during runtime and without the JMF registry on an audio device (microphon).
    I would be very thnakful if someone could solve my problem.
    thx!
    the_greg

    thanks Owen,
    but I'm sure that it has to works without jmfinit and the registry :-)
    An example, how you can get the webcam without jmf.properties (to test it, you can rename the registry):
    private CaptureDeviceInfo getVideoDevice() {
    Vector deviceList = CaptureDeviceManager.getDeviceList(null);
    CaptureDeviceInfo devInfo = null;
    if (deviceList.size() == 0) {
    String name = VFWCapture.capGetDriverDescriptionName(0);
    System.out.println(name);
    if (name != null && name.length() > 0){
    devInfo = com.sun.media.protocol.vfw.VFWSourceStream.autoDetect(0);
    System.out.println(devInfo);
    return devInfo;
    In my opinion as this is possible for a video-device, it ought to be possible for an audio device also. (??)
    Greg

  • Detecting Video Capture Devices without Installing JMF

    Hi All,
    I want to detect the video capture devices, without installing the JMF.
    I had included the jmf (windows version) in lib path in netbeans ide. I am able to detect the audio capture device. But unable to detect the video capture devices. But if I install the JMF, I am able to detect the Video Capture devices in My system. Can anyone help me?
    Thanks,
    Vinoth Kumar.

    YES! Please take a look at SIP Communicator project. They have all what u want.
    The main idea is copy all .dll files to System or System32 (Please check files which JMF will copy to ur computer and where).
    U need to have jmf.jar and sound.jar too ( maybe more) in your computer.
    Your program should have DirectSoundAuto.java, JavaSoundAuto.java, JavaSoundDetector.java, JMFInit.java. Those files are in JMStudio source code. They are used to detect all capture devices and register it to JMF, but wait !!! where they will be saved? In order to save information about capture devices which are detected, you should create "jmf.properties" file in the same location with jmf.jar.Therefore, u should modify the JMFInit.java so it can check if the "jmf.properties" exists. If it's not, you have to create it.
    Check SIP Communicator at Folder "media" then "device". They have modified those files I mentioned above and created some new files to SC can detect more devices.
    Edited by: tamngminh on Sep 16, 2008 9:50 AM

  • How to call "detect capture devices" in my program

    Hi,
    I'd like to develop a webcam program. Is it possible to call jmfregistry's "Detect Capture Devices" in my code? So I don't have to ask the user run jmfregistry.
    Thanks,
    Derek

    detect capture devices is dependent of the plataform. I recommend to look into the source code of JMFRegistry and JMF.

  • Detecting capture device

    Hi
    How can i detect a capture device in jmf ?
    Is there any listener for this which will raise an event when a new device is
    plugged in while my application is running ?
    Thank you

    public Vector deviceList;
    public  CaptureDeviceInfo di;
    deviceList = CaptureDeviceManager.getDeviceList(new (AudioFormat.LINEAR,44100,16,2);
    for(int i = 0; i<deviceList.size(); i++)
    di = (CaptureDeviceInfo)deviceList.firstElement();
    }

  • Jmf detect capture device

    hi guys,
    why is my deviceList return null?
    // Get the CaptureDeviceInfo for the live audio capture device
    Vector deviceList = CaptureDeviceManager.getDeviceList(new
                            AudioFormat("linear", 44100, 16, 2));
    if (deviceList.size() > 0)
          di = (CaptureDeviceInfo)deviceList.firstElement();
    else
    // Exit if we can't find a device that does linear, 44100Hz, 16 bit,
    // stereo audio.
         System.exit(-1);

    Dear andreyvk ,
    I've read your post
    http://forum.java.sun.com/thread.jspa?threadID=785134&tstart=165
    about how to use a single RTP session for both media reception and trasmission (I'm referring to you RTPSocketAdapter modified version), but, at the moment, I'receive a BIND error.
    I think that your post is an EXCELLENT solution. I'modified AVReceive3 and AVTransmit3 in order to accept all parameters (Local IP & Port, Remote IP & Port).
    Can you please give me a simple scenario so I can understand what the mistake?
    I'use AVTransmit3 and AVReceive3 from different prompts and if I run these 2 classes contemporarely both in 2 different PC (172.17.32.27 and 172.17.32.30) I can transmit the media (vfw://0 for example) using AVTransmit3 but I'can't receive nothing if I run also AVReceive3 in the same PC?
    What's the problem? Furthermore, If I run first AVReceive3 from a MSDOS Prompt and subsequently I run AVTransmit3 from another prompt I see a BIND error (port already in use).
    How can I use your modified RTPSocketAdapter in order to send and receive a single media from the same port (e.g. 7500).
    I've used this scenario PC1: IP 172.17.32.30 Local Port 5000 and PC2:IP 172.17.32.27 LocalPort 10000
    So in the PC1 I run:
    AVTransmit3 vfw://0 <Local IP 172.17.32.30> <5000> <Remote IP 172.17.32.27> <10000>
    AVReceive3 <Local IP 172.17.32.30/5000> <Remote IP 172.17.32.27/10000>
    and in PC2:
    AVTransmit3 vfw://0 <Local IP 172.17.32.27> <10000> <Remote IP 172.17.32.30> <5000>
    AVReceive3 <Local IP 172.17.32.27/10000> <Remote IP 172.17.32.30/5000>
    I'd like to use the same port 5000 (in PC1) and 10000 (in PC2) in order to transmit and receive rtp packets. How can i do that without receive a Bind Error? How can I receive packets (and playing these media if audio &/or video) from the same port used to send stream over the network?
    How can I obtain a RTP Symmetric Transmission/Reception solution?
    Please give me an hint. If you can't post this is my email: [email protected]

  • URGENT- problem in detecting audio device using  JMF in  WIndows7 - 64 bit

    Hi,
    I am trying to detect the audio device in windows 7 -64 bit OS, using JMF API with JRE 1.6.18.But it showing zero device found.below i have mentioned the source code that i have used.please suggest how to solve this , thanks in advance.
    import java.util.ArrayList;
    import java.util.Vector;
    import javax.media.CaptureDeviceInfo;
    import javax.media.CaptureDeviceManager;
    import javax.media.format.AudioFormat;
    import javax.media.format.VideoFormat;
    public class CaptureDeviceFinder {
    //possible audio formats available
    static String audioformats[] = {
    AudioFormat.LINEAR };
    static ArrayList available_audiolist= new ArrayList();
    public static void main(String[] args) {
    findAudioDevices();
    }//main
    public static void findAudioDevices() {
    / Audio capture devices /
    System.out.println("CAPTURE AUDIO FORMATS:");
    for (String format : audioformats) {
    System.out.println("format is :"format);
    Vector<CaptureDeviceInfo> devices = CaptureDeviceManager
    .getDeviceList(new AudioFormat(format));
    System.out.println("devices is"+devices);
    for (CaptureDeviceInfo device : devices) {
    if (!devices.isEmpty()) {
    System.out.println("\tFormat: " format);
    System.out.println("\t\t" device.getName());
    available_audiolist.add(format"|"+device.getName());
    System.out.println("list is :"+available_audiolist);
    Edited by: Saravana4u on Mar 17, 2010 10:39 AM

    almightywiz wrote:
    Well, I don't know if the JMF Studio works on a 64-bit system, but the base java libraries work just as well as on a 32-bit system. I currently use both Windows 7 64-bit and 32-bit version, and I am able to recognize all of my audio input devices.JMF wraps around and makes use of a bunch of native interfaces, all of which are precompiled for 32-bit systems. As such, anything relying upon those 32-bit libraries will not work, and that cuts the functionality down to, essentially, the cross-platform pack stuff.
    JMF's sound infastructure is mostly a wrapper around JavaSound, so as long as JavaSound is working on the JRE, you'll be able to utilize the audio functionality.
    As for device detection, I know at least some of that is native code. I'm not 100% sure, but I'd almost expect the Windows performance pack to never return any devices on a 64-bit system, but the cross-platform back to return audio devices. This is an assumption, but, that's what I would expect.
    In any case, if you're using the Windows performance pack, you'd most likely get better results by switching to the cross-platform pack.

  • Trouble with detectin IDS Eagle capture device with JMF

    Hi
    I'm having trouble detecting my capture card (IDS Eagle model). Is anyone else having the same problem? I tried using the JMStudio tool but the only capture devices detected are the audio ones.
    I have installed the WDM driver for this card but jmf doesn't detect it.
    Any help will be appreciated. Thank yoU!

    Hello Tania,
    I think if you look at the source code for AVTransmit2.java, which can be downloaded, this will help you. Make sure you use javasound://8000 as one of the parameters when creating the AVTransmit2 object.
    Regards,
    James

  • How to use Enterprise Seriver with java Client

    Hello.
    I'd like to access Enterprise Services that are provided by Test Drive from Java Client.
    Access the Enterprise Services Workplace Systems [original link is broken]
    I've known how to find services and how to test a service.
    I've got .wsdl file.
    But I have no idea that I should do next.
    Let me know how to create proxy from Enterprise Service's wsdl files.
    Thanks,
    Koji.

    Hi Koji,
    You can test your webservices using the software XMLSpy. which you can download from here and its free.
    http://www.altova.com/download/xmlspy/xml_editor_enterprise.html
    Regards
    Sumit Bhutani

  • How to Register devices without the JMFStudio GUI?

    Hi, I would like my program to automatically register any and all media devices without having to use the JMFRegistry and Studio GUI. I haven't been able to find any examples or information on this. Please help.

    Hi, I have the same problem. But, since I am just a beginner, I don't quite understand the solution you provide. I wonder if you can expain it a little further.
    For instance, I don't recognize any of the methods that you specified in the solution.
    Thanks!

  • How we close Views without using Java Script

    Hi All,
    can you please suggest me how i close view with out using java script.
    if possible please reply with code.
    Thanks
    Siva

    Hi Siva,
    You can do this either by hiding your window or by closing the window. Following is the sample code to do that
    IWDWindowInfo windowInfo = null;
    IWDWindow window =null;
    windowInfo = (IWDWindowInfo)  wdComponentAPI.getComponentInfo).findInWindows("<<WindowName>>");
    if(windowInfo!=null)
    window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
    window.hide();
    Try with this code, might be useful for your scenario.
    Thanks,
    Sandeep

  • How to install device type via AIX client

    Hello,
    I would like to install a printer device type PRI file to the SAP system via an AIX client. Would appreciate some detailed steps and assistance.
    Using: SAP R/3, OS AIX ver 5.3. TL 7
    Thank you.

    > Hi, Thank you for the information, but I am not able to download the SAP Note 6427.
    > Reason: I do not have the username and password.
    - start transaction SE38
    - execute the program RSTXSCRP
    - press on the button with the "i" to get the documentation
    Markus

  • JMF Registry Editor reports "Capture device query unsuccesful"

    I am working with JMF. Sometimes (maybe 1/3rd of the time) when I go into JMF Registry Editor, Capture Devices and click "Detect Capture Devices". I get an error that says "Capture device query unsuccesful".
    There is no further information. Nothing is logged in the log file. I can find nothing about this in the documentation, nor can I find this text in the downloadable source. Anyone know what this means?
    Also, as far as I can tell, this has nothing to do with how my device is connected and so on, it will work one time, and not another.
    Thanks,
    Joe Larson

    I am having the same problem, however it never works for me. I noticed that when the JMFInit runs that the program terminates while it is apparently still quering a device. I think that it's a timeout issue. I seems like the device query is not waiting long enough for the devices to respond. I have not found a way to change the timeout value. Any ideas on how to change the timeout value?
    Also, have you had any success in using the JMF for video capture and transmission. I am working on a chat program. For now, it's just for fun, but maybe will will make is a sellable product later.
    Take care,
    John

  • How to create command line java client

    I have a java servlet FileClient.java and am invoking it thru POST method from the html file. How can I create command line java client so that I can execute this class file from windows command prompt.
    e.g. java FileClient <argument>
    TIA

    > .. there's also a "won't work".
    I could post a sample...I know that you can instantiate and call aservlet,
    or even write your own servlet container - butit's
    still a local instance. He can't invoke his remote
    servlet by calling its class on the client like he
    suggested.HttpURLConnection in main.Only if his Servlet has a main method. Which wouldn't really make it a servlet anymore.
    OP said he wants to invoke it from command-line using
    java -cp . TheServletClass
    He said he has a servlet called FileClient. And he can't invoke a servlet directly that way, without building a wrapper that starts it, making it more than a servlet, and it definitely won't execute on the server. That's my whole point. I never wanted to say you can't write a command-line program that invokes a servlet on a remote server. I do it myself after all.
    I guess I should have expressed myself more clearly.

  • How to capture audio??

    Dear sir,
    Have anyone know how to capture audio use JMF?
    Have anyone can give me a reference URL?

    I think there is everything you need here:
    http://java.sun.com/products/java-media/jmf/2.1.1/guide/
    http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFCapturing.html
    Regards,
    Paul

Maybe you are looking for

  • Shared DateVar in Subreport and datediff calculation in Main Report?

    Hello experts, I am using CRXI sp2.  I have a report that contains two subreports for different dates in the same date field that are identified by a Service Code.  The subreports have been placed in the same group footer 1a to be displayed and the c

  • How to share the i-Photo Library on the same i-Mac with 2 Accounts?

    I am using a iMac running OSX 10.8.4. there are 2 accounts, mine and my wife's. we wish to be able to share the i-Photo Library on the same computer. So I copied the i-Photo library from my Library folder to the Users Shared folder and then deleted t

  • Line width in J2ME

    Hi all, How can I draw a line/polyline with a given width. I am looking for something similar to Stroke with with in Swing. If I am not wrong there is no direct API to achieve this. Can anyone help me do it in some way. Thanks in advance D M

  • Differentiate weekly and monthly report

    Hi Guys...Here is my problem... I created a crystal report with start date and end date parameters. I need to schedule this report to run automatically every month and also make it adhoc. I am using Business objects to schedule this report. The month

  • Struts automatic Validator issue

    Hi, I am new to struts. I was trying to use the automatic validation for my application. I guess I have followed all the steps mentioned in the help documents from struts. Still I ma getting the following error while starting the JBoss server. Could