I have a VOIP program wherein when an incoming call is detected my java program picks the call and makes the caller listen to an audio. The audio message file format currently supported is .wav but i need to enable .mp3 support and not .wav (However additional support for .wav wuold be a plus point though. but .mp3 is a must.)
When i give the path of the .mp3 file in the code of my java program, the call gets picked but nothing is played. The following is the output in the jmf.log with some errors. and below that is the output with .wav audio file.
jmf.log output when i give the path of the .wav audio file
Can anyone help me out with this?
Thanks in advance.
No, this did not work.
I added the jar in the jre home and verified that it is included in the classpath. Still it did not work. also i tried adding the jar externally and then giving the import statement
I copied the jar in the /lib/ext/ directory of the installed jre's on my system.
Closed my Java project and reopend it. I verified that the mp3 plugin was taken into the class path.
when installing the plugin, i did the following as mentioned in the website:
For the plugin to work within a JMF application, you need to :
- ensure that jmf.jar is also in the /lib/ext directory
- run the following command:
You should see a message that it was successfully registered, without any error message.
Tritonous is good. :-) But if i have to implement in my code then it will make me recode everything, as the current was coded with the aim to play only wav file. Now mp3 feature is required.
At one place an output format is specified: ULAW/rtp, 8000.0 Hz, 8-bit, Mono, FrameSize=8 bits
this statement forms the format string. when i provide the wav file as an input. it works, plays and gives the following output n the jmf log:
the following is the output in the jmf.log when i give the mp3 file as the input to my application:
Can anyone get a hint on this problem?