Shoutcast streaming - java

I'm currently working on a app for a podcast (katg.com) which will let you listen live etc... however, I have not found any open source code available to stream shoutcast. I know there are some ways of doing it, but I find it hard to find any available code on the net that explains it for a java/android beginner like myself. Anyone know of any libs/tutorial/examples/code that shows how to do this on android?

As Erich seems to have accidentally posted the wrong link, here's another resource about the protocol: http://forums.radiotoolbox.com/viewtopic.php?t=74
The shoutcast stream itself is accessible via HTTP. For example via Telnet:
$ telnet myshoutcastserver.com 8000
GET / HTTP 1.1
..............a lot of streaming stuff........
So you could try to buffer the stream data and when there is enough to play pass it to a MediaPlayer instance.

There is a shoutcast streaming application for android on github:
http://github.com/Dawnthorn/nagare/
I didn't try it and it seems to be not continued. However maybe the code helps :)

Here's some text on how the Shoutcast protocol works: SHOUTcast Protocol. It's not as good as sample code, but it might come in useful.
Edit: Fixed the link.

In case you haven't found it by now, Icecast is an open source audio streaming server that supports the SHOUTcast protocol: http://www.icecast.org/index.php

Related

How can I stream video to a browser using Java/Spring?

We a have jboss server running and have a basic web setup using Spring but now I would like to stream video into the browser. I am trying to use xuggle but then I read on their website that you can't put it into an Applet or use it with java webstart, so I'm assuming that means I can stream to a browser, is this assumption correct? If so does anyone else know any libraries or how I should go about doing this? If you need any more info or have questions I'll be happy to answer although I'm very new to streaming video and relatively knew to Spring.
UPDATE: So I'm able to generate a video using xuggle, and then I can embed that video in my html code... but I can't generate and stream at the same time. Does anyone have any ideas how to make xuggle push date out to my tomcat server?
You may want to look at Red5 media server.
Since you are doing jsp, just have your code write out the HTML 5 video element. That will provide basic video functionality. This will work in all HTML 5 compliant browsers as well as all mobile devices.

Can an example be provided on how to stream an audio file with FMJ or JMF in Java

I have been looking for about 2 days for an example on how to do RTP streaming in FMJ or JMF that can be picked up through a browser or through a media program like VLC.
Any help would be appreciated!
Download the source zip file from FMJ. There is a file SimpleVoiceTransmiter.java in src.examples.rtp folder. You can use this source to stream audio file like wav.
a bit late, but have you ever checked the jmf tutorial ? it is a real guide for you.
sometimes not sufficent, but shows you the right directions.
also, ever considered a free 3. party solution ?
just download MODERATOR-CONFERENCE from http://www.kemottron.com and give it a try.
it has some extra functions, such as, sms sending, chat, e-learning, live broadcast and file exchange. you may also setup its server side to achieve everything you need.
regards,

Using RED5 to record video stream

First of all - My English is very bad! so I hope you will understand what i'm asking...
I'm having difficulties in understanding how to use red5 to record stream from the client webcam onto the server side. I have red5 installed on a remote unix server, and i want to enable the users in my website to record stream from their webcam and store it on the server.
I have knowledge in javascript/php/java, and I know that I need to RTFM. I did try to search for some helpful information but i couldn't find any leads regarding my question.
Could you please help me with the first steps like how to connect to the remote server (I'm using Eclipse IDE for Java EE Developers).
Thank you
I advice you to take a look to openmeeting ,it's open source and use RED5 as media streaming server, and provides recording feature from client, and many other interesting features related to webcam.

Java - XMPP - I need some document or tutorial for it

i found XMPP on google (i need create a application IM look like Yahoo or Live or Pidgin), i need write XMPP Server and Client but i don't know how to write it?
because of it, it need some document or tutorial help me write server and client interactive with my database.
Thank you
Best Regards!
Either you can write your own or use the already proven open source libraries ready to be used. Look this post Good XMPP Java Libraries for server side?
If you are looking for tutorials, articles etc then go to xmpp.org or go to this post Good tutorials on XMPP?
You can also try writing server components with Whack framework. I've blog about using Whack here (part1, part2, part3).

Stream relay with Red5 Media Server

I write an (Java-) application that streams a video from one peer to another. I use a library that is able to produce and consume an RTP stream (Xuggler that is). I thought about using Red5 Media Server to relay the stream. What I need next is to send and my video stream.
The documentation I read so far always deals with recording streams or streaming prerecorded videos (and of course the web cam). Also there is quiet some amount of Actionscript code that does not help me at the time. (I belief...)
So my question is: Can Red5 help me? (I.e. should I continue reading or is there another - more direct - solution?) Could you please give me some pointer where I would find suitable documentation?
Red5 is primarily for streaming to Flash clients over RTMP,RTMPT,RTMPS etc. It is not limited to these protocols, but they are the ones available "out of the box". If you want to run xuggler inside red5 to consume RTP and then publish to RTMP then you are in luck as this is very ez to do. If you want to republish as RTP, you have some additional work cut out for you.

Categories

Resources