Streaming audio from online radio - java

I've had a break from programming from a while and slowly but surely I'm coming back into it. I've been looking for a way to stream (and play) audio from an online radiostation (such as FearFM). I've been looking for duplicates and similar questions on Stackoverflow but didn't really found something usefull. I've also looked at Google, but it gives me the impression that the audio support at java is a bit a dark space.
Could anyone point me a direction on how to approach this? Libraries, examples, descriptions.. everything would be appreciated :)
Thanks in advance,
wvd

If you want to work with media in a Java GUI you could check if JavaFX suppports what you need:
http://docs.oracle.com/javafx/2.0/api/javafx/scene/media/package-summary.html#package_description

im just looking for the same as you, i found some usefull stuff in the JMF api, JMF Framework. in case that you made it already please share code, im looking for that too, send me a PM.

Related

Motorola Mk3000 application development

Does anyone have experience developing an application for Motorola MK3000, been reading the manuals and browing the web but can't seem to find a good guide. I feel like this is my last resort. I have a background in c++ and java, anyone can help me? or point me to a good (not confusing) guide? Thanks in advance...
Edit:
Sorry forgot to write what kind of app. I would like to create a bar code scanner that will fetch the image and other infos from server with the corresponding ID, kinda like the one they use in malls to find the item price.
There are similar topics if you search for them. E.g:
How to integrate the scan barcode option on my WinCE application?
If you need more information feel free to ask.

AJAX Chat How to add voice with Java?

Ok so I use Ajax Chat (http://sourceforge.net/projects/ajax-chat/) and it is a great chat script. I use the MyBB Integrated version and all is well. What I am wanting to know is how I could add voice capabilities.
Basically each channel would be similar to a Yahoo chat room and have a talk button. This way someone could talk and the rest of the room could hear.
Flash is NOT an option, and I tried RED5 with it and the results were terrible. Bad quality, couldnt hear half of the time, etc.
I have searched and searched and searched and all I find is calling, IP-to-IP, etc.
I would like to do this in JAVA if possible which is not one of my best languages. I do have root access to my server and it is linux (CentOS). So what I really need is a point in the right direction on how to do this.
Thanks in advance.
The best way to do this is to use the Java Speech API. You can find out more information about this at this site. This question was already answered actually in this link.

Best way to play a radio stream ( shoutcast ) in Java?

I want to code an audio player in Java. java.JavaFX has a very nice support for mp3 playing but I want in my player also the possibility to listen to radio.
The problem is I have searched for some time and I didn't find something that works like I want:
MP3SPI - this is nice but just wont
play some streams
vlcj - I've tested the latest version
1.2.0 but was with a beta version of VLC so I had times when the stream
just stopped for no reason.
NativeSwing's windows media player
but that is a heavyweight component
and also I don't want to make it
dependable on WMP.
So I'm kind of out of luck. Well guys If you know more about this topic please share it!
Thank you!
MP3 playback in Java is a bitch. In nearly any case it's not worth the work you put in it.
However, this is something that worked for me. It can easily be recoded to play Shoutcast streams.
JavaLayer (library behind MP3SPI) is a mature project and should handle most streams, can you post some streams that it can not read? Check that other players using JavaLayer, like jlGUI, can play these streams. Maybe it's something with your code.

Other Ways Besides JMF to Play Media in Java

I am currently using JMF. The reason why I am straying from JMF is the lack of format support. I have looked into FMJ and have not had much luck getting it to run. Recording media is not an issue, I just need a way to display it. My application is swing based. Anyone recommend a library or framework that they have worked with that is good for playing media. Could you tell me about your experience with it?
Thanks
..Recording media is not an issue, I just need a way to display it. ..
Look into the Java Bindings for VideoLAN.
..Could you tell me about your experience with it?
I've not used it. JMF is good enough for my immediate purposes.

Android development resources for a Java newbie

I've got one of those newfangled Android phones and want to do some app development for it and am looking for guides. I haven't really found anything that looks promising for both an Android newbie and a Java newbie though. I know PHP and code in it professionally as well as a basic smattering of some other languages so any 'for dummies' resource is probably not for me.
Are there any advisable books, resource sites or tutorials that focus on both these aspects (rather than one or the other) that assume you know nothing but not treat you like an idiot?
Thanks.
First of all, start with Google's own documentation. Its basic but a good start.
http://developer.android.com/guide/topics/fundamentals.html
Then you may wish to progress via various books.
I would recommend the set of books written by a Mark Murphy who is a regular on stack overflow. They are digital downloads and are kept up to date. Checkout http://commonsware.com/
For Java, since you already understand programming, I would recommend Sun's tutorial
http://java.sun.com/docs/books/tutorial/
For Android I agree with Tom but also recommend the notepad tutorial:
http://developer.android.com/guide/tutorials/notepad/index.html
I'm also in the same boat, except I'm a .net developer trying to pick up Android. The best place to start seems to be the Google getting started. I've not found any other large resources for Android, but IBM have a couple of good articles, particularly this run-down on working with XML with Android.
http://www.ibm.com/developerworks/opensource/library/x-android/index.html#download
Also, here's an excellent book with some great examples:
http://www.amazon.com/Android-Wireless-Application-Development-Conder/dp/0321627091

Categories

Resources