WebRTC does not work for me

I’ve been trying to get WebRTC to work with two Android devices for two weeks now and I can’t find my mistake, maybe I have a thinking error. As soon as I want to connect to another device with one device, only the one device gets an answer and a stream, but this one is empty, so RTCView remains empty.

Maybe I didn’t understand WebRTC properly.

Client:

Server:

1 Like

Im sorry, I was just stupid.

The code above is a working example with server and the newest version

Hi @reinkepatrick , so your code is working for stream multiple devices?

Hi @abdymm,

The focus was on communication between two devices. It should nevertheless be easily expandable, the main point here is probably the design elements.

It has not been tested on iOS or web, it should still work.

Hi @reinkepatrick, nice repo, i just test it out your project, it work well but in device cannot render the RTCView, i just print the this.state.remote.toURL() and here is the result

is this project provide a video call too?

It actually only delivers a video call, have you changed all addresses in the code?

oh, ok, but is it possible for many to many?
ya only SERVER_URL right?

  1. it should theoretically be possible
  2. yes, unless you access via different networks, then you need a TURN server

what do you mean via different network? right know the code use stun server by google

Yes, I mean in this case different subnets

ok then, thankyou i will try change the turn and stun server, it suppose to show the video right?

Yes, but you need obviously two devices and setup the node server

yap, actually i use two devices, and the node server are running on server

i am testing right know

1 Like

hi @reinkepatrick i just tested and its success, now the chore is make it can many to many, thanks for the repo, maybe i will do PR on your repo if i got how to make it more that two devices

Just fork it to help other people

allright, thankyou verymuch

1 Like

Hi @reinkepatrick, I tried your code and everything seems okay but I am unable to see the video. I think its because the code is using STUN server ?? Also I am testing the application between two city with the help of my friend.

Can you please advise.
thank you

You need a TURN Server then.