How can I stream video to all clients?

how to stream video in direct connection between 2 clients

  • I want to stream video between 2 clients without passing it through the server Each side sends real time video and also receives the other sides real time video Is there an open source project that allows that? Is there an API for that? I'm willing to pay I want to create it in web app for mobile Js, html, Ajax, websockets, css... Thank you so much

  • Answer:

    http://www.videolan.org has a built in streaming server, as well as the gui it can be use via the comand line so could be scripted to suit your requirements http://www.videolan.org/doc/streaming-howto/en/

nurne at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

If you stream video directly from one client to another, then you have to understand between two networking models: client-to-server and peer-to-peer. Server usually is static machine, with networking infrastructure, static ip and many things that allows accessibility by public. With peer-to-peer you will face many problems, first of them is going through NAT when you creating socket for receiving. One of client might need to create socket to accept connection, and second to accept. They might do both simultaneously and stick to first connected. Streaming video using web is not possible right now. There is only some beta development happening for Chrome and FireFox that will be publicly available not really soon. As well you can't establish peer-to-peer connection using WebSockets. So there is no way doing it using Web technologies. You might want to have a look into native Mobile development, but there you will face problems with peer-to-peer connections as well.

Maksims Mihejevs

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.