Peer-to-peer streaming webcam

I was wondering if it is possible to create a client (or web client) that can connect two users and then sends the stream of its webcam to each other. This should happen without using Red5 or any other Flash / Media server. Which protocol can I use? What api etc.

+3
source share
4 answers

As a super simple method, check out the UDP tutorials:

http://msdn.microsoft.com/en-us/library/system.net.sockets.udpclient.aspx

If UDP ends up too unreliable (it does not guarantee that the data will be sent to where it was sent), you can also try TCP connections.

, , - NAT. , . UPnP, , , , :

http://www.codeproject.com/KB/IP/upnpnattraversal.aspx

, . UDP 10 , TCP - , . Google, .

. -. MemoryStream (System.IO) .jpg. TCP UDP.

+2

, , TCP UDP / .

+1

I have one thing to add, in order to receive two clients, both behind their respective firewalls, to talk to each other using UDP, you need to do NAT traversal. This is how Skype works.

article STUN

+1
source

Adobe Stratus lets you do this.

+1
source

Source: https://habr.com/ru/post/1730108/


All Articles