P2p video conferencing

I have developed a peer to peer wpf app and in it I just share my video to other colleagues, but I also want to watch their videos at the same time. I currently don't know how to stream my video stream to another peer machine so that they can handle it on their own. I want this to be a p2p video conferencing. I want one peer to send its video to other users and receive videos from other users at the same time.

Which approach should you take?

Threads to handle multiple client requests at the same time?

+2


source to share


2 answers


It seems very plausible that you will have one stream (or more) processing your own video for transmission to other conference participants, with one stream handling video input from each of the other participants for display on your own screen, as well as any running streams to control. layout, etc. (So, if there are N people in the conference, there will be 1 transmission stream, N-1 mapping streams and a controller stream, and others as it seems most needed.)



For example, you might have one video larger than the others and the controller stream will be used so you can choose which one is the main (zoomed) video at any time.

0


source


If you are using Java, look into NIO and libraries built on top of NIO (like Netty, for example) to limit the use of threads.They can handle multiple connections much more efficiently than with multiple threads.



0


source







All Articles