In my sig is a link to my online radio station. If you look at the downloaded .m3u file, you will
see that it connects to my server on some port (that I have reserved for the stream). This works
great for most people, except for me
. When I am at work, the firewall blocks anything connecting
to that port. I have our firewall setup so that only port 22, 21, 80, and 443 can go out. Yes, I can
configure the firewall so I can connect, but that does not solve the problem for other potential listeners,
and I could use a fun programming project
What I would like to try is do basic HTTP streaming. Can a Java Applet make an HTTP connection
and connect to an audio device? What I would do is put the mp3s in a protected folder where it will
only accept the user agent given by the applet. If that isn't feasible I might look at writing a small
java based mp3 player.
Another way I could do it is with Flash, which I wouldn't mind trying. I really like how CBC Radio 3
does the streaming audio. You can undock the player and leave it in a small window. My friend is the
sysadmin there, and says that they use a lot of advanced Flash stuff to do it. Unfortunately it's Flash 6
so it doesn't work for me in FreeBSD (Flash wrapper only handles Flash 5 right now). I actually think
that this is a good application for Flash on the web.
Anyways, this is just what I was pondering while I was lying awake in bed last night at 2:30am. It's not
completly thought out yet, but I wouldn't mind hearing some feedback from some of you Java programmers
out there.
			
			see that it connects to my server on some port (that I have reserved for the stream). This works
great for most people, except for me
to that port. I have our firewall setup so that only port 22, 21, 80, and 443 can go out. Yes, I can
configure the firewall so I can connect, but that does not solve the problem for other potential listeners,
and I could use a fun programming project
What I would like to try is do basic HTTP streaming. Can a Java Applet make an HTTP connection
and connect to an audio device? What I would do is put the mp3s in a protected folder where it will
only accept the user agent given by the applet. If that isn't feasible I might look at writing a small
java based mp3 player.
Another way I could do it is with Flash, which I wouldn't mind trying. I really like how CBC Radio 3
does the streaming audio. You can undock the player and leave it in a small window. My friend is the
sysadmin there, and says that they use a lot of advanced Flash stuff to do it. Unfortunately it's Flash 6
so it doesn't work for me in FreeBSD (Flash wrapper only handles Flash 5 right now). I actually think
that this is a good application for Flash on the web.
Anyways, this is just what I was pondering while I was lying awake in bed last night at 2:30am. It's not
completly thought out yet, but I wouldn't mind hearing some feedback from some of you Java programmers
out there.
				
		
			