WebRTC not totally working #225
Comments
Hi @Silloty1,
|
Hi, |
Hi Here are the logs from the second client, what doesn't hear the first one : Thanks for your third answer, I'm going to have a closer look at it. But I didn't really get it : Peer to peer technology is supposed to be a technology that directly communicates between clients. Why do we need a server here then in the end ? |
Hi again. Received SDP message: type=Offer data=v=0 |
Ok so Now the question is, does the answering peer (Unity Editor) accepts to send audio in return? We need to see the answer that the Unity Editor sends to the laptop. Can you please paste that SDP answer message? You can grab it from your signaling solution, or by logging it before it's sent in Unity in |
Should I debug the Signaler_LocalSdpReadyToSend(). for that ? |
Yes :) |
Just to check that it's called or do I need to debug the message? |
|
What format does the message should have ? Currently I have this : EDIT : Sorry if I missunderstood you Data is v=0 |
Sorry, just saw that i actually had a sdp anwser message : Received SDP message: type=Answer data=v=0 |
The answer also indicates ( I assume your laptop is running a Standalone build of Unity for Desktop platform? In any case it seems the two machines can communicate and establish a WebRTC connection, and both agree to send and receive audio and video. If you receive audio/video on one side, then it's probably not a network issue. And the codecs in the offer and the answer are both OPUS, which is supported. So if the laptop doesn't get the Can you please check that the microphone is actually working, and is not disabled in Windows? Can you reproduce the issue if you invert the devices, and run the Unity editor on the laptop and the Standalone build on the other machine? |
Yeah it does Thanks a lot for your help |
I don't think the SDP messages are necessary if the issue is reproduced when swapping the devices, it means there's likely an error or bug in the code. |
Hi After installing Unity to two other computers, I made the test again and this time it's working ! Thanks a lot for your help ! |
Does the computer where it is not working have some special audio device, like an Azure Kinect DK (7 microphones)? If so then there's a bug where non-recognized audio devices on a computer actually make the entire audio module fail. This is a bug in the underlying Google implementation, see #140. This happens in particular if any device with either 3 or more than 5 audio channels is plugged in. The Google implementation only supports mono (1), stereo (2), or quadraphonic (4) audio channels (and the latter is only partially supported, falls back on stereo). What is the issue with deploying on HoloLens? You should be able easily by making a Unity build for UWP x86. |
The issue with the HoloLens is that the app is instantly crashing, I don't know why :/ |
Are you using IL2CPP or the .NET backend? We don't support the .NET backend, only IL2CPP. If you're using IL2CPP you should have a Visual Studio solution and some generated C++ code, so you should hopefully see in the Output window some error or why it crashes. |
Ping @fibann for question 2. at the very top of the thread, that sounds (no pun intended) like what you described today no? |
It doesn't seem to completely match - in my case the remote audio callbacks were called, but the frame contents were all 0s. |
Ping @Silloty1 is there still an issue deploying to HoloLens, and if so we need more information about it to help diagnose why it's crashing. Please check also that if Unity didn't set that up correctly you have the "Internet (Client)", "Microphone", and "Webcam" permissions in your AppXManifest.xml for the UWP project that Unity generates; otherwise it will not have access to the microphone and webcam, and this will crash at startup due to the microphone being always accessed (this is a Google limitation). |
Hi
I have a question regarding how the service is working.
I managed to install the WebRTC for Unity, and to generate a Windows solution for another computer.
I, then, tried the VideoChat example but several questions are coming to my mind.
In all the cases, I can see that my different devices are connected to the server, and I can see that they are trying to send information for other devices, but I cannot figure out how to make it work properly
Thanks a lot
The text was updated successfully, but these errors were encountered: