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.
Related
I want to show in my servlet the webcam connected to the server, I read in many sites that I may use getUserMedia(); but that only gets the video webcam on the user, and not on the server.
How can I do that? My servlet is programmed in Javascript
First, I heavily doubt that your servlet is written in JavaScript. Are you sure we aren't talking of Java?
What you describe sound like you want to do a live stream of your webcam. Compared to video on demand, this is a demanding task and needs quite some knowledge and experience.
We are not talking of streaming from one point to the other ("unicast streaming"), but a multicast stream where somebody would open a web site and connect to the stream. In order to do that, you have to send the video stream of your webcam to a multicaster, encoded in a way suitable for the intended audience. So what basically happens ist that you capture the video data of your webcam, encode it to a format capable of being streamed, send it to a multicaster which copies the stream to every client that connects to that multicaster. This client can either be a stand alone media player such as Quicktime, VLC or WMP or a player embedded into a website.
So in short and a bit more specific, you have to do the following:
Capture the output of the webcam and encode it according to your intended audience. VLC is a good tool for that.
Set up a multicaster such as the excellent Darwin Streaming Server to which you send the stream to. This server has to be publicly accessible.
Create a link to the stream's description file (rdp file) usually generated by the Darwin Streaming Server. This will connect the client to the stream. An alternative may be a player embedded to your website, which basically is your choice.
Doing this right is not only programmers work, but a lot of sysadmin work, too. You have to do some bandwidth and capacity planning, optimizing the encoder, choosing the right codec and much, much more. All those choices are heavily influenced by the type and size of your intended audience, the purpose of the stream and a lot more.
I'm creating application where user can record voice message, problem is that recorded file is passed to other encoding servers, that requires both video and audio streams to be present.
So my question is how can I use static image to emulate webcam and attach it to NetStream?
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, watchRecording);
//ns.attachCamera(cam);
ns.attachAudio(mic);
ns.publish(fileName.text, "record");
[+]
Although I don't have access to application on WOWZA server I can negotiate with some one to add few lines and recompile it. So server-side solution in java is also an option here.
I'd recommend you use a server side solution, as creating a client side solution would involve sending more packets than is actually needed. Plus, I'm sure Java has better tools to emulate 'video'.
**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 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.
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