muaz-khan / RTCMultiConnection

RTCMultiConnection is a WebRTC JavaScript library for peer-to-peer applications (screen sharing, audio/video conferencing, file sharing, media streaming etc.)
https://muazkhan.com:9001/
MIT License
2.57k stars 1.37k forks source link

Signalling Server Issue #268

Open htahir6200 opened 8 years ago

htahir6200 commented 8 years ago

Dear All, Hope everyone is good and enjoying. Firstly i want to appreciate the work of Muaz khan, he is doing well. I am posting this question with some modification again as i have no response of my previous question (#258) . I have created peer 2 peer connection between two android phones using WiFi. Now my question is, Do i still need a signalling server, ( i.e. socket.io, websocket, Node.js, Firebase , pubnub or any other) , for video broadcasting in android demo. I am very new to android so Everyone is welcome to comment on this question. Looking towards your responses.

muaz-khan commented 8 years ago

Socket.io is required. We've to install socket.io on a desktop operating system; and use WiFi/4G to connect with socket.io. It becomes intranet or your private network.

Bluetooth solution seems complex: https://github.com/randdusing/cordova-plugin-bluetoothle#data-parsing-example We need to be able to exchange RAW text-date using bluetooth protocols.

htahir6200 commented 8 years ago

Thank you Muaz for the quick response, Actually i am not using any desktop or Laptop to install socket.io. My basic requirement is to just broadcast the video ,captured using Webrtc, to every android phone and the receiving phone will rebroadcast the same video. Since i am using your android application(Scalable broadcast) for this purpose but i am still very confuse that it will help me or i have to develop this type of application from scratch. I need your great help in this critical situation. Thank you. wifi connectd

htahir6200 commented 8 years ago

Is there a way that i cam make my 1 android phone as server and the other 1 as client,

muaz-khan commented 8 years ago

Try this:

Make sure that that chat works using Bluetooth protocols.

If you can share chat messages using above example, then we can use same demo to implement "bluetooth-signaling" for RTCMultiConnection.

Which means that we will be using bluetooth to share SDP+ICE among both or all android/iphone devices. So no need to use socket.io.

htahir6200 commented 8 years ago

Dear Muaz, Thank you for sharing the Link. I have successfully connected two android phones using the chat example by "Don", Code and .apk file is available on this link. Code Link: http://benkesmith.com/android/bt_serial/btserial_project.zip other helping code: https://github.com/don/BluetoothSerial/issues/50

20161023_155158

Do you have any tutorial for adding Bluetooth signalling on android scalable broadcast?

Thank you for all this help.

htahir6200 commented 8 years ago

Dear Muaz, I need a suggestion from you . As you have mentioned in the previous comments that using Bluetooth as signalling is little bit difficult to implement. So What will be the alternative if i am not using it for my scenario. My requirement is to broadcast video up-to 4 hops(Using 4 android phones, 1 will transmit and 4 will listen and other will help in broadcasting) using webrtc on android phones without internet. What are the limitations and is it feasible or not ? Please help me in it. Jazakallah.

Actually in these days i need your suggestions from your expertise, Can you please share your email for private discussion if you dont mind . htahir6200@gmail.com

htahir6200 commented 8 years ago

Dear Muaz, I have tried to connected 4 phones using WiFi Direct. Is there a way that i can broadcast video to everyone using WiFi Direct. Please Help me in doing this. I am in little problem. Or Give me some direction that how can i do that. image