I'm researching ways to create a web radio station of sorts. It will have streaming MP3 audio from TV programs for users to listen to. They should have the option of just listening to the stream or pick the shows they'd like to hear and add them to their playlist.
It needs to be usable by folks on mobile devices, so Flash is out for that reason. Also, the admin folks should be able to add programs to the player and maintain the list of available programs.
Are there any existing tools for such an app? We work in a Unix, PHP, Java environment with MySQL and Oracle db. We'll even take a solution that's in ASP.NET! Your assistance is much appreciated. Thanks.
As a server, you might consider using SHOUTcast, by the same folks who've made Winamp. SHOUTcast can stream audio in a number of formats. Or, you can write a web application that dishes content over HTTP with the proper MIME type set.
SHOUTcast - download info # classic.shoutcast.com
To reference content on clients, you should consider using .M3U format for delivery. This allows you to specify a playlist that is application-agnostic.
M3U format # Wikipedia
Related
I would like my Java application to detect whether the computer is receiving data from a particular website (it could check for incoming data from a list of website I.P addresses I provide, for example). I don't need or care about what are the contents of the data - I only want to know whether the machine is getting data from those websites either by a web browser or some application.
How could I achieve this?
The native PCAP libraries are able to capture and send packets coming across your network interface. I've only ever used it in a C++ context, but a quick Google search tells me that there are Java wrappers around these libraries. (I cannot vouch for the quality of any of these libraries, though.)
I'm looking for a way or a streaming server that allows streaming a list of local video files to multiple receivers, and all the receivers are synced, so they will all see the same video output at the same time.
I am not focused on a specific programming language or framework, I know there is a way of doing it in Actionscript & FMS , but since Flash is dying I'm not considering it a solution.
I suspect that by local video files you actually mean some files hosted on a server. Instead of WebRTC, which is peer-to-peer you'll better be using a media stream server and create some kind of "live" stream for all those files, so that the receivers are synced.
On the client side, just use the video tag with the appropriate URL.
I have an application that pulls information from a web server and displays it. I know that Android has some nice language features where you can put multiple strings.xml files inside the project for specific languages. Is there a way to convert the text from the server (which is in english) to whatever local the user has set on their device?
Thanks
Yes, but that's usually done at the server-side with some kind of translation api. Even on Android, when an app needs content that hasn't already been pre-translated, it goes through a server for the translation.
For instance, you could use Google Translate's api (which is not free)
http://code.google.com/apis/language/translate/overview.html
Or you could install some open source solution on your own server and use that remotely as well.
**I need to buid distributed computing system that use java technology to access mp3 files stored in seperate servers.
In the user interface layer users can play audio files.
In the information processing layer application client implementing with database servers.(where audio and user data stored)
In the information processing I need to be able to manage audio files.
My questions are,
What is the best framework to get started?
Am I able to use different technologies like SmartGWT, SmartGWT EE, mySQL, JSF together?
What is the best mp3 player that work with java?**
(Assuming your client is a browser)
The easiest way:
On the client side use a Flash player that plays mp3 downloaded via HTTP. You can write your own or pick one on the web (there are plenty available): example.
Serve your mp3 files as static files via a web server, or write Java Servlet that serves this files. In second case you could have more control and implement progressive HTTP download.
I'll only answer question about streaming:
There's the locality-icecast project that implements an icecast streaming server in java, but it was abandoned, so you can pick up the development. You can also take a look at JRoar, it's an icecast server for ogg, but it's generally same thing and you can get some ideas from it too.
This way any player that supports shoutcast/icecast protocol will work with your server.
If you want to write your own player, you can decode mp3 using JavaLayer library.
I'm developing a web application. It will allow people to link written phrases with spoken phrases. In order for this application to be useful, random users must be able to record their own voices and send the sounds to the server. If I just have an "upload wav" form, no one will use it. If I have a "record" button that streams or packages up audio to the server, people will use it.
I'd be happy to use Flash to do this.
I'd be happy to use Java to do this.
I'd be willing to use .NET to do this ;)
I could use an external service API if there is one available.
The format of the audio is not important as long as I could replay it on other web pages.
How do I put a record button on my website?
Sounds like you're reinventing Forvo.com ;-)
AFAIR, they use Flash to record.
Flash has the ability to record sounds.
You don't need a flash media server because you don't need to "stream" audio to the server. The server side of your site can be written in PHP, .Net, or whatever you prefer.
One problem that may come up with using Flash: NellyMoser Codec.
Sounds like there are some tools that can do the conversion (though I'm not sure of the legality), and obviously some sites have gotten this sort of functionality working, but it's something to be aware of.