Skip to content
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

SrtSharp for .net7 and Android? #6

Open
forlayo opened this issue Sep 19, 2023 · 4 comments
Open

SrtSharp for .net7 and Android? #6

forlayo opened this issue Sep 19, 2023 · 4 comments

Comments

@forlayo
Copy link

forlayo commented Sep 19, 2023

I am planning to use SRT and your wrapper would be very useful, the problem is that's just compiled for .net standard 2.0. Could you please compile it for .net7 and .net7-android?

If you've plans on opensourcing the wrapper I am more than happy to contribute.

@BlackGad
Copy link
Contributor

Thank you for showing interest in using the SRT wrapper. I'd like to mention that .NET Standard is designed to be compatible across different .NET implementations. According to the MSDN documentation, .NET Standard 2.0 is compatible with .NET 7 and .NET 7-Android.

Given this compatibility, may I ask why you would need a separate platform-specific compilation?

@forlayo
Copy link
Author

forlayo commented Sep 19, 2023

Oh, I was thinking that I needed to create a .net7 compiled and other for android to provide the .so and .dll on each plafform. But if that's not needed then sorry I'll have a look :)

@forlayo forlayo closed this as completed Sep 19, 2023
@forlayo
Copy link
Author

forlayo commented Sep 20, 2023

@BlackGad

I am trying to use SrtSharp wrapper with .NET MAUI, in Windows it works well so far but then compiling for Android but it has a crash on any method call. I suppose as it couldn't found the .so library.

image

Having a look on SrtSharp package it looks like it has runtime just for linux-x64 and win-x64 but not for android (armv7 and x86).
image

It is enough if If add these .so by hand in my project ? If so, from where should I compile srt to have it compatible with your wrapper?

Once again, happy on contributing with you if you've plans on opensourcing the wrapper :)

@BlackGad
Copy link
Contributor

I see. First of all, .NET Standard is indeed compatible with .NET 7 Android. However, SrtSharp is a facade for the original SRT library created by SWIG, and it relies on runtime for specific platforms (Linux, Windows). All the source code is public and available; we even created a pull request to the official repo Haivision/srt#2577.

Currently, we are building this package internally using our CI pipelines. We are not actively developing for the Android platform at the moment. I will look into the feasibility of adding support for another platform, but the probability is quite low at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants