linphone-xamarin icon indicating copy to clipboard operation
linphone-xamarin copied to clipboard

.net Maui

Open maestro-oc opened this issue 2 years ago • 16 comments

Hi,

Have you got any plans to make the SDK compatible with .net MAUI?

maestro-oc avatar May 31 '22 16:05 maestro-oc

Any plans for this?

KariKummu avatar Apr 24 '23 15:04 KariKummu

+1 for adding maui support.

JaxInfinitaz avatar Jun 02 '23 17:06 JaxInfinitaz

It works with .NET MAUI

lucasbrahm avatar Nov 07 '23 12:11 lucasbrahm

It works with .NET MAUI

I get segfault errors at runtime when trying with .net maui, have you gotten it to work?

JaxInfinitaz avatar Nov 10 '23 22:11 JaxInfinitaz

It works with .NET MAUI

I get segfault errors at runtime when trying with .net maui, have you gotten it to work?

I successfully converted my whole Xamarin project with Linphone to .NET MAUI (despite some bugs of .NET MAUI).

What version of Linphone SDK are you using? Android or iOS? What does it make crash? Initialize linphone? Start call?

lucasbrahm avatar Nov 10 '23 23:11 lucasbrahm

@lucasbrahm Can you help me? My repo: linphone-maui

I initializing linphone, then I want to disable opus codec by user interface. In original Xamarin version - this is working. But in MAUI - AudioPayloadType is always Enabled. Please check if I initializing Linphone in proper way.

pkozak2 avatar Feb 02 '24 15:02 pkozak2

@pkozak2 @lucasbrahm Im also having issues getting Linphone to work in NET MAUI. Im currently receiving a 'System.DllNotFoundException: linphone' error when trying to create the core. I've downloaded the nuget Linphone SDK and placed the linphonewrapper.cs, llinphonemanager.cs, linphonerc_default, and linphonerc_factory in my NET MAUI project. Maybe I have things in the incorrect place? Any help would be greatly appreciated.

headintheclouds21 avatar Feb 15 '24 20:02 headintheclouds21

@lucasbrahm Can you help me? My repo: linphone-maui

I initializing linphone, then I want to disable opus codec by user interface. In original Xamarin version - this is working. But in MAUI - AudioPayloadType is always Enabled. Please check if I initializing Linphone in proper way.

Looks good to me. Probably a bug with linphone updating or reading codecs.

@pkozak2 @lucasbrahm Im also having issues getting Linphone to work in NET MAUI. Im currently receiving a 'System.DllNotFoundException: linphone' error when trying to create the core. I've downloaded the nuget Linphone SDK and placed the linphonewrapper.cs, llinphonemanager.cs, linphonerc_default, and linphonerc_factory in my NET MAUI project. Maybe I have things in the incorrect place? Any help would be greatly appreciated.

Check: https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Getting%20started/Xamarin/

If you are going to use nuget, just install linphone SDK nuget to your project. It is not required to copy linphonewrapper.cs and native libraries.

If you are going NOT to use nuget, you have to copy linphonewrapper.cs, and add native libraries (AAR file for Android and all .xcframework for IOS)

lucasbrahm avatar Feb 15 '24 21:02 lucasbrahm

@lucasbrahm Thanks for replying. That's helpful to know. I've cloned the NET MAUI project from @pkozak2 that looked good to you, Lucas. I'm still receiving that 'System.DllNotFoundException: linphone' error when trying to create the core. Do you know why that would be? Is it a linphonesdk bug?

headintheclouds21 avatar Feb 16 '24 17:02 headintheclouds21

@lucasbrahm can you try disable some codec in your app? For example "opus", then use .enabled() like me to get status? I created ISSUE in sdk repository, but how long I must wait for response - who knows, maybe liblinphone repo will be better place :)

@headintheclouds21 push your project to github, I will check if its running for me.

pkozak2 avatar Feb 16 '24 18:02 pkozak2

@pkozak2 That would be awesome. I'd really appreciate it. I posted my repo here: https://github.com/headintheclouds21/Linphone-Maui I've been trying to mimic your repo to get linphone working in maui. How does mine look to you? I saw the issue you posted. Hopefully there's a response to your it soon :)

headintheclouds21 avatar Feb 20 '24 16:02 headintheclouds21

@headintheclouds21 well... this is full copy of my code what I see in commits history. It is working for me without exception.

pkozak2 avatar Feb 20 '24 18:02 pkozak2

@pkozak2 yeah i was trying to get your code running on my machine and I keep receiving a System.DllNotFoundException: 'linphone' when trying to start the linphonemanager. I'm trying to use the linphone sdk inside my net maui application, but was trying to get yours working before i implemented it into mine. Do you know how you got that dll to be recognized? I figured i must have something in the wrong place. I've been testing using an android emulator if that makes any difference.

headintheclouds21 avatar Feb 20 '24 19:02 headintheclouds21

@headintheclouds21 I using VS 2022 in latest version on Windows 11, Android Emulator with API 33. Maybe clear nuget cache? Or try LinphoneSDK.Xamarin from Linphone nuget

pkozak2 avatar Feb 20 '24 20:02 pkozak2

@pkozak2 Clearing the nuget cache fixed my issue. Thanks for the helpful tip. Do you know if the Linphone SDK is compatible with iOS or will it only work with Android in NET MAUI? I see there's a xamarin iOS sample for linphone, but not sure if that means it would also be compatible with NET MAUI

headintheclouds21 avatar Feb 21 '24 16:02 headintheclouds21

@headintheclouds21 Can you please provide working sample for Android for .NET MAUI. Thanks!!

ParagSaxena avatar Sep 24 '24 18:09 ParagSaxena