Open JackHarckness opened 2 months ago
IlcDisableReflection
is not supported and it can cause many components not working as expected.
@hez2010 why do you think the reflection use is required within this library? Note that type checks like
if (e is RawH264IFrame intraFrame)
{
//...
}
are still allowed in reflection-free mode. I would suggest a minor research and refactoring that will find and remove any reflection use. This can also lead to a minor performance increase.
When compiling with MSBuild attribute
<IlcDisableReflection>true</IlcDisableReflection>
, RtspClient cannot connect to a stream. Otherwise it works great. I'm attaching a relevant portion of the stack trace but you know, it is very much crippled since IlcDisableReflection is true.RtspClientSharp's version: 1.3.3
Stack trace
``` Unhandled Exception: MT140699988240528: Connection error ---> MT140699988350928: End of rtsp stream at RtspClientSharp.Rtsp.RtspTransportClient.To Reproduce If you want a repro, create a console application, add
<IlcDisableReflection>true</IlcDisableReflection>
to your.csproj
file, make an async call to RtspClientSharp.ConnectAsync. Compile it then to native code (<PublishAot>true</PublishAot>
anddotnet publish
on .NET 8.0+ will do the trick) and run. Otherwise you won't be able to see this error.