melihercan / WebRTCme

A cross-platform framework for adding WebRTC support to .NET MAUI, Blazor, and Desktop applications by using a single unified .NET/C# API.
https://github.com/melihercan/WebRTCme
MIT License
226 stars 46 forks source link

MediaSoup iOS not working #21

Open NebulaSleuth opened 2 years ago

NebulaSleuth commented 2 years ago

Not sure if this is simply because you have not finished implementation of something or not, but...

I am trying to get your MediaSoup implementation to talk with my MediaSoup based server, and it works using Android. But in iOS the RTCPeerConnection.AddTransceiverWithTrack(track, init) always returns null. As far as I can tell everything between the 2 implementations has succeeded prior to this step and resulted in the same inputs to the call.

I have been pulling my hair out trying to figure it out and I realize that this is not necessarily an issue with your code, but any thoughts or ideas would be appreciated.

melihercan commented 2 years ago

It could be an issue in my code.

Because I remember I observed an issue during my tests on iOS (for MeidaSoup). I can't remember the exact details but I was observing an issue that an object that I still have reference (or think have a reference) was disposed for some reason. It was something due to the the way the code is implemented right now. Instead of using an existing object the code was creating a new object or similar. As I said I can't remember the exactly details right now. I need to debug and reproduce the issue to make sure the exact root cause.

Do you get object disposed error? If so, it is due to the reason I provided above.

NebulaSleuth commented 2 years ago

I am not getting object disposed currently. Although I do remember getting that at some point and had to change the way the object was being constructed. But I can't remember exactly what object that was, or whether it was iOS or not. I will keep digging. Thanks