I was trying the mediasoup demo app at https://v3demo.mediasoup.org demo link, on internet transmitted through mobile hotspot on desktop chrome Version 97.0.4692.99 (Official Build) (64-bit). I opened one window in normal window and another in the incognito mode. However it doesn’t play video or audio on the mediasoup. I had tried this demo link on normal wifi earlier and it worked perfectly, there wasn’t a problem. What might be the issue?
How to produce?
Use Mobile Hotspot for connecting the laptop to the internet using the wifi transmitted through the hotspot
Copy the meeting url and open the Incognito tab and start the meeting there as well.
the audio and video both does not transmit.
I observed that the tracks and stream is transferred and the video and audio elements created but the video & audio doesn’t play
Your response and resolution would be really helpful.
PS.
I have my normal webRTC Mesh application. that application is able to capture both the camera feeds from these two tabs and able to transmit using rtcPeerConnection and play both videos and audios.
NAT issues is all, possibly bad configurations or in need of TURN. Hotspots aren’t all the same so it’s not really easy to give you further explanation.
Thanks Nazar, but the problem is only on mobile hotspot or connecting mobile hotspot and desktop on 4g / mobile data connectivity… Things work very well on wifi… So I suspect there has to some NAT issue. May be you can let us know in case you are able to resolve it.
I have more observations from chomre://webrtc-internals. The ICE connection state: new => checking => disconnected and it shows error as iceconnectionstatechange (legacy)
Ideally Mediasoup shouldn’t require TURN server, as its a direct connection over TCP or UDP port, but somehow its not able to resolve the ICE connection. 3 ICE Candidates in the SDP are
icegatheringstatechange is “complete”
setLocalDescriptionOnSuccess
signalingstatechange is “stable”
transceiverModified
iceconnectionstatechange is “disconnected”
iceconnectionstatechange (legacy) is “failed”
I checked with netstat in windows and the ports are open . So, it must be something at mediasoup side, which is not able to connect.
Okay, I thought it supports IPV6 also. But regardless, but the mobile hotspot also has the public IPV4 but still it not connecting the meetings between participants of wifi to mobile hotspot.
I checked the v3demo.mediasoup again and again and also tried downloading and running locally but its not helping… the chrone://webrtc-internals on mobile data shows connection stuck up at “new”
now check the chrome://webrtc-internals iceCandiate grid for the connections established. It would show local-candidate 192.168.xxx.xxx or some other IP but not the IP shown by public sites as public IP. It will also show remote-candidate is 62.210.xxx.xxx. Which is mediasoup server address of v3demo.mediasoup.org
now in the command prompt if we do the tracert mediasoup.org, it doens’t connect using the IPV4 public IP it shows the IPV6 ip trace…
Which means that the IPV4 and IPV6 are being used and being mixed and thats where the issue is. The demo server isn’t configred for IPV6, so it should have picked up the public IP, as the others also give like My IP Information - WhatIsMyIP.com®
Please do let me know after your checking, if there any solution.
If solution is in the server side, then please do let me know, I can download and run locally and test. Or best, if the demo can be updated on github and also the actual server v3demo.mediasoup.org