regarding use of JMF to send audio data over RTP

63 views
Skip to first unread message

shweta sharma

unread,
Dec 23, 2011, 8:17:23 AM12/23/11
to bo...@googlegroups.com
Hi ,

I am trying to send a local audio file sample.wav over RTP port using java
For that i am using JMF . I am trying a sample program given in JMF tutorials .

in Audio transmitter code  i m getting 0 device for a given format.


        AudioFormat format= new AudioFormat(AudioFormat.LINEAR,     8000,8,1);

        Vector devices= CaptureDeviceManager.getDeviceList( format);

        CaptureDeviceInfo di= null;

        if (devices.size() > 0) {
             di = (CaptureDeviceInfo) devices.elementAt( 0);
        }
        else {
            // exit if we could not find the relevant capturedevice.
            System.exit(-1);
        }

As i searched on web i found that device  might  not be  on system . . I have just included jmf.jar in to classpath
do i need to do some more thing .?

Any help in this regard will be helpful.

Thanks in advance.

HAPPY CHRISTMAS TO ALL BOJUG members!!
Shweta
Reply all
Reply to author
Forward
0 new messages