Stream mp3 using Java technology - java

**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.

Related

How to capture all Network traffics(http\https) of a Web Application using Java in Eclipse IDE?

I want to record a Web Application traffic using Java code in the back-end and replay it after recording.
Is there any way to record Web Application traffic like we do in Load-runner using Java code?
Although it doesn't automate everything or is not specific to Java, you can use Wireshark to retrieve HTTP/HTTPS requests and export them ( https://www.wireshark.org/docs/wsug_html_chunked/ChIOExportSection.html ). Some other tools such as PlayCap allow to directly playback the wireshark capture.
Or you can write some Java code that mimics the requests and even load the wireshark capture file to send logged requests with any HTTP-able library.
You can also use directly pcap to retrieve packages (or the jpcap variant, written in Java, that may have some reusable code for your use-case), and try the similar approach to playback the capture.

How to stream a scheduled playlist of video files

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.

How to make Tomcat stream media?

I am entirely new to streaming implementation. I have developed some RESTful web services using Jersey/Tomcat. There are few cases where I need to send audio/video files to the clients, which uptil now I have been sending as a file fr download - now I want to stream these files.
Do I need to write some code for this ? Or I need some third party solutions ...I have heard about Wowza / Darwin / Red5...But I dont know if they can be integrated with Tomcat and my existing services. Any third party solutions need to be free / opensource, and they should support both audio and video streaming. In the near future I need to add transcoding support too..for which I am planning to use Xuggler. So it would be good if the server is having such support.
Any pointers would be appreciated. Thanks !!
Red5 is essentially Tomcat with added features. I don't know how far back in time the fork was made but the basic functionality is all there.
Also - Red5 and xuggler play nicely together.
You'd still need to code up the client side of the streaming portion though. Its possible that HTML 5 will give you this for cheap.

PHP upload file with resume functionality

Hi I have a question, I want to do an upload script that can take rather big files 500MB, 1GB
and upload it with resume functionality. Is this possible with just PHP or is there other solution like Java Applet, Flash and which one would be best for this case?
PHP is a server-side language so you really can't subsitute it with a Java Applet or Flash. Those are client-side technologies executed inside the browser. For uploading you need both a client and a server.
Resuming a HTTP upload is not possible, no matter the HTTP application platform, whether it's J2EE, Python, Rails or ASP.NET. It's just the restriction of the HTTP protocol.
One way to accomplish the resume functionality is by having the files uploaded into a standards-compliant FTP server, using a proper browser component. In that case you'd need a custom input solution, perhaps a Java Applet such as jClientUpload. Files in size of several hundred megabytes are too much for Flash.

How do you create a web audio playlist?

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

Categories

Resources