-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming won't start when offline (server on local network) #26
Comments
Can you describe your setup? |
Oh right it must come from my setup then indeed. It stops working as soon as I turn off the wifi in my case. I am using these settings : The server and client nodes both run on my mac on ports 3000 and 3001. Also I modified the script to include four players on the same page (four language channels) so it may come from this. However it works perfectly fine as soon as I am connected to the internet that's why it keeps me wondering (but I can't see anything trying to connect to the internet in my developer tools' Network tab). |
Can you reduce your setup to a single player for now? |
I just tried it on Ubuntu and got the same thing going, the streaming stops as soon as I turn off the Wifi.
I actually only have one player but 4 buttons to initialise the player with a different web socket, I will try to run the original version of your code when I will have time.
Thank you for your support anyways, this is much appreciated.
… On 15 Apr 2023, at 01:06, JoJoBond ***@***.***> wrote:
Can you reduce your setup to a single player for now?
Since I never tested running the server on MacOS, there is a possibility that this is some kind of Apple shenanigan.
So, if possible, could you try running it in a true Linux environment? A VM would probably do just fine for testing.
—
Reply to this email directly, view it on GitHub <#26 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAMNSLEMDDACDDYDPKP5BK3XBGPTRANCNFSM6AAAAAAW6MNXZE>.
You are receiving this because you authored the thread.
|
I just tested this again with a fresh install of the project and get the same results. @JoJoBond can you definitely launch a stream when your wifi is totally off and the ethernet cable unplugged ? One thing I didn't mention is that the event log doesn't show any error, it just won't start playing : [20:22:50] Init of WebSocketClient succeeded |
I tested following scenarios: Local test with 127.0.0.1 IP. Ethernet with internet is connected. Both do work. |
OK, I will have to dive deeper in the webRTC connection process to find
where is the issue. Thanks anyways.
Le sam. 15 avr. 2023, 20:44, JoJoBond ***@***.***> a écrit :
… @JoJoBond <https://github.com/JoJoBond> can you definitely launch a
stream when your wifi is totally off and the ethernet cable unplugged ?
I tested following scenarios:
Local test with 127.0.0.1 IP. Ethernet with internet is connected.
Ethernet that is connected to a Wifi AP with 192.168.0.X/24 IP. No
internet connection.
Both do work.
—
Reply to this email directly, view it on GitHub
<#26 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMNSLGN5I3JC5ETYCETLCLXBKZVLANCNFSM6AAAAAAW6MNXZE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I've set up the solution on a local network that may be disconnected from the internet at times.
When offline, the "iceConnectionState" never becomes "connected" but remains at the "new" stage.
When online, it works fine and the audio stream plays without issues.
I am wondering why WebRTC seems to require an internet connection when both the client and server are running locally.
Any ideas or workaround to avoid this?
Thank you
The text was updated successfully, but these errors were encountered: