Click here to Skip to main content
11,636,778 members (77,376 online)
Click here to Skip to main content

Tagged as

WebRTC based Event Video Broadcasting to connect with 1000 people without the need of any server

, 9 Feb 2014 CPOL 5.9K 4
Rate this:
Please Sign up or sign in to vote.
WebRTC based Event Video Broadcasting to connect with 1000 people without the need of any server-Well I have been thinking about a video broadcasting system where we won't need any Media Server. I believe the idea is - A captures the live video/audio event. When B comes to a certain chat-room and co

WebRTC based Event Video Broadcasting to connect with 1000 people without the need of any server-

Well I have been thinking about a video broadcasting system where we won't need any Media Server. 

I believe the idea is - A captures the live video/audio event. When B comes to a certain chat-room and connects with A, A relays it to B, and when C comes to the same room (or same page), C connects with the latest user B and B relays the video received from A to C.. and like wise C->D->E->F... creating a chain of viewers where at most 2 communication channels at max has to be sustained by each viewer. I think RCTPeerConnection takes a media stream, so instead of the local stream somehow if the remote stream received by B from A can be used while B is trying to make connection to C - it should be possible.

I think I have managed to relay A's video to C. Since I am testing with only one PC (laptop) and two different camera's I am not 100% certain, but I think I have done it, it seems RTCPeerconnection is able to take a remote stream. Btw, I am using the easyrtc library since I can't find any workable simple codes to test with. So the basic idea should be, A grabs the event video. B connects to A, B saves the remote stream reference received from A; C connects to B, B instead of passing local media stream, hands the remote media stream to C; C would save that remote media stream; When D connects to C, C would hand the remote media stream received from B (which actually has been received originally from A) to D and like wise, the flow continues... i.e A's media stream passes like a Wave through B, C, D , E.... Notice that the connection flow should look like this: A<-->B<-->C<-->D<-->E... every node has only two connection.. with the previous node and the next node. However, long story short - Yes, you can access the media stream and hand it to another remote connection I just need an expert who can give me a working raw JS based webrtc code where A connects with B and vice versa.. and I would try to write C connecting with B and D connecting with C codes for proper testing.

 

hint: 
login as "guest", with password: "thanks" to post comments

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Mukit, Ataul
Chief Technology Officer Rational Technologies
Bangladesh Bangladesh
Your Lord does not like people who waste by extravagance, and only the righteous C s, and does so in increments, and they are of those people who are mindful of what memory and time has in offer and they waste none of it.

You may also be interested in...

Comments and Discussions

 
GeneralVideo Broadcasting Pin
Member 1091409330-Jun-14 2:04
memberMember 1091409330-Jun-14 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150728.1 | Last Updated 10 Feb 2014
Article Copyright 2014 by Mukit, Ataul
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid